Skip to content

Commit

Permalink
Update sourcing-from-agilitycms.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts authored Apr 28, 2021
1 parent 5d0139f commit 5407a74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/docs/sourcing-from-agilitycms.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ module.exports = {
```jsx:title=src/AgilityPage.jsx
import React from "react"
import { graphql } from "gatsby"
...

export const query = graphql`
query($pageID: Int!, $contentID: Int!, $languageCode: String!) {
Expand All @@ -161,7 +160,6 @@ export const query = graphql`
`

const AgilityPage = ({ pageContext, data }) => {
...
return (
<>
<SEO
Expand Down Expand Up @@ -323,7 +321,7 @@ Agility CMS also provides `gatsby-image-agilitycms` as a npm package. This is a
```jsx
import { AgilityImage } from "@agility/gatsby-image-agilitycms"

;<AgilityImage image={image} layout={fullWidth} />
const Component = ({ image }) => <AgilityImage image={image} layout="fullWidth" />
```
[Learn more about How Images Work in Gatsby](https://help.agilitycms.com/hc/en-us/articles/360043048651)
Expand Down

0 comments on commit 5407a74

Please sign in to comment.