Give 404 page a proper layout

This commit is contained in:
pixelyunicorn 2018-11-06 01:53:49 -05:00 committed by GitHub
parent b6632e0e10
commit 3cf383d58d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,15 @@
import React from 'react' import React from 'react'
import Layout from '../components/Layout'
const NotFoundPage = () => ( class NotFoundPage extends React.Component {
<div> render() {
<h1>NOT FOUND</h1> return (
<p>You just hit a route that doesn&#39;t exist... the sadness.</p> <Layout location={this.props.location}>
</div> <h1>Not Found</h1>
) <p>You just hit a route that doesn&#39;t exist... the sadness.</p>
</Layout>
)
}
}
export default NotFoundPage export default NotFoundPage