Skip to content

Commit

Permalink
Tidy up the remark example (#6160)
Browse files Browse the repository at this point in the history
* Import graphql in the using-remark example

* Import graphql in transformer-sharp fragment
  • Loading branch information
m-allanson authored and pieh committed Jun 26, 2018
1 parent 7fd1898 commit 26582d3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/using-remark/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { Link, StaticQuery } from "gatsby"
import { Link, StaticQuery, graphql } from "gatsby"
import { scale } from "../utils/typography"
import styles from "../styles"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-remark/src/pages/excerpt-example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { Link } from "gatsby"
import { Link, graphql } from "gatsby"
import styles from "../styles"
import presets from "../utils/presets"
import { rhythm, scale } from "../utils/typography"
Expand Down
2 changes: 1 addition & 1 deletion examples/using-remark/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { Link } from "gatsby"
import { Link, graphql } from "gatsby"
import Layout from "../layouts"
import styles from "../styles"
import presets from "../utils/presets"
Expand Down
2 changes: 1 addition & 1 deletion examples/using-remark/src/pages/tags.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { Link } from "gatsby"
import { Link, graphql } from "gatsby"
import Layout from "../layouts"
import kebabCase from "lodash/kebabCase"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-remark/src/templates/template-blog-post.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { Link } from "gatsby"
import { Link, graphql } from "gatsby"
import Img from "gatsby-image"
import rehypeReact from "rehype-react"

Expand Down
2 changes: 1 addition & 1 deletion examples/using-remark/src/templates/template-tag-page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { Link } from "gatsby"
import { Link, graphql } from "gatsby"
import Layout from "../layouts"

class TagRoute extends React.Component {
Expand Down
2 changes: 2 additions & 0 deletions packages/gatsby-transformer-sharp/src/fragments.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* eslint-disable */
import { graphql } from "gatsby"

export const gatsbyImageSharpFixed = graphql`
fragment GatsbyImageSharpFixed on ImageSharpFixed {
base64
Expand Down

0 comments on commit 26582d3

Please sign in to comment.