Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Aug 11, 2017
1 parent 55fc806 commit 45e0e5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions examples/using-contentful/src/pages/image-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default props => {
options
</p>
<h2>Resize</h2>
{assets.map(({ node: { title, resize } }) => {
return (
{assets.map(({ node: { title, resize } }) => (
<img
alt={title}
src={resize.src}
Expand All @@ -30,8 +29,7 @@ export default props => {
border: `1px solid tomato`,
}}
/>
)
})}
))}
<h4>GraphQL query</h4>
<pre style={{ background: `#efeded`, padding: rhythm(3 / 4) }}>
<code
Expand Down Expand Up @@ -69,8 +67,7 @@ export default props => {
<p>
You should prefer this operator over <code>resize</code>.
</p>
{assets.map(({ node: { title, responsiveResolution } }) => {
return (
{assets.map(({ node: { title, responsiveResolution } }) => (
<img
alt={title}
src={responsiveResolution.src}
Expand All @@ -83,8 +80,7 @@ export default props => {
border: `1px solid tomato`,
}}
/>
)
})}
))}
<h4>GraphQL query</h4>
<pre style={{ background: `#efeded`, padding: rhythm(3 / 4) }}>
<code
Expand Down Expand Up @@ -126,8 +122,7 @@ export default props => {
resizing focus area
</a>
</p>
{assets.map(({ node: { title, resizing } }) => {
return (
{assets.map(({ node: { title, resizing } }) => (
<img
alt={title}
src={resizing.src}
Expand All @@ -140,8 +135,7 @@ export default props => {
border: `1px solid tomato`,
}}
/>
)
})}
))}
<h4>GraphQL query</h4>
<pre style={{ background: `#efeded`, padding: rhythm(3 / 4) }}>
<code
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// babel-preset-env doesn't find this import if you
// use require() with backtick strings so use the es6 syntax
import 'babel-polyfill'
import "babel-polyfill"

const program = require(`commander`)
const packageJson = require(`../../package.json`)
Expand Down

0 comments on commit 45e0e5b

Please sign in to comment.