fix lint
This commit is contained in:
parent
45e4a0a4d3
commit
4d508450a4
@ -1,11 +1,11 @@
|
||||
import * as React from "react"
|
||||
import { Link } from "gatsby"
|
||||
import * as React from 'react'
|
||||
import { Link } from 'gatsby'
|
||||
|
||||
// styles
|
||||
const pageStyles = {
|
||||
color: "#232129",
|
||||
padding: "96px",
|
||||
fontFamily: "-apple-system, Roboto, sans-serif, serif",
|
||||
color: '#232129',
|
||||
padding: '96px',
|
||||
fontFamily: '-apple-system, Roboto, sans-serif, serif',
|
||||
}
|
||||
const headingStyles = {
|
||||
marginTop: 0,
|
||||
@ -17,10 +17,10 @@ const paragraphStyles = {
|
||||
marginBottom: 48,
|
||||
}
|
||||
const codeStyles = {
|
||||
color: "#8A6534",
|
||||
color: '#8A6534',
|
||||
padding: 4,
|
||||
backgroundColor: "#FFF4DB",
|
||||
fontSize: "1.25rem",
|
||||
backgroundColor: '#FFF4DB',
|
||||
fontSize: '1.25rem',
|
||||
borderRadius: 4,
|
||||
}
|
||||
|
||||
@ -31,13 +31,13 @@ const NotFoundPage = () => {
|
||||
<title>Not found</title>
|
||||
<h1 style={headingStyles}>Page not found</h1>
|
||||
<p style={paragraphStyles}>
|
||||
Sorry{" "}
|
||||
Sorry{' '}
|
||||
<span role="img" aria-label="Pensive emoji">
|
||||
😔
|
||||
</span>{" "}
|
||||
</span>{' '}
|
||||
we couldn’t find what you were looking for.
|
||||
<br />
|
||||
{process.env.NODE_ENV === "development" ? (
|
||||
{process.env.NODE_ENV === 'development' ? (
|
||||
<>
|
||||
<br />
|
||||
Try creating a page in <code style={codeStyles}>src/pages/</code>.
|
||||
|
@ -1,10 +1,10 @@
|
||||
import * as React from "react"
|
||||
import * as React from 'react'
|
||||
import { graphql } from 'gatsby'
|
||||
import { GatsbyImage, getImage } from "gatsby-plugin-image"
|
||||
import { GatsbyImage, getImage } from 'gatsby-plugin-image'
|
||||
|
||||
// markup
|
||||
const IndexPage = ({ data }) => {
|
||||
const images = React.useMemo(() => data.allFile.edges.map(edge => edge.node, [data]))
|
||||
const images = React.useMemo(() => data.allFile.edges.map(edge => edge.node), [data])
|
||||
console.log('images', images)
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user