diff --git a/components/SitePage/index.jsx b/components/SitePage/index.jsx index f92ad56..b58e1ad 100644 --- a/components/SitePage/index.jsx +++ b/components/SitePage/index.jsx @@ -1,39 +1,34 @@ -import React from 'react' -import moment from 'moment' -import { RouteHandler, Link } from 'react-router' -import { prefixLink } from 'gatsby-helpers' -import access from 'safe-access' -import { config } from 'config' -import SiteSidebar from '../SiteSidebar' +import React from 'react'; +import SiteSidebar from '../SiteSidebar'; import './style.css'; class SitePage extends React.Component { - render() { - const {route} = this.props - const post = route.page.data + render() { + const { route } = this.props; + const post = route.page.data; - return ( -
- -
-
-
-
-
-

{ post.title }

-
-
-
-
+ return ( +
+ +
+
+
+
+
+

{post.title}

+
- ); - } +
+
+
+ ); + } } SitePage.propTypes = { - route: React.PropTypes.object.isRequired, -} + route: React.PropTypes.object.isRequired, +}; -export default SitePage +export default SitePage;