Moved Layout to be a wrapper for routes

This commit is contained in:
Jori Lallo
2017-06-24 17:14:36 -07:00
parent aa0ddd94bf
commit b8d0666c63
11 changed files with 211 additions and 222 deletions

View File

@@ -2,23 +2,20 @@
import React from 'react';
import { Link } from 'react-router-dom';
import Layout from 'components/Layout';
import CenteredContent from 'components/CenteredContent';
import PageTitle from 'components/PageTitle';
class Error404 extends React.Component {
render() {
return (
<Layout>
<CenteredContent>
<PageTitle title="Not found" />
<CenteredContent>
<h1>Not Found</h1>
<h1>Not Found</h1>
<p>We're unable to find the page you're accessing.</p>
<p>We're unable to find the page you're accessing.</p>
<p>Maybe you want to try <Link to="/search">search</Link> instead?</p>
</CenteredContent>
</Layout>
<p>Maybe you want to try <Link to="/search">search</Link> instead?</p>
</CenteredContent>
);
}
}