From 54642a67579bd938a97bcb0b691c25779e0d177a Mon Sep 17 00:00:00 2001 From: Simon Reinsperger Date: Wed, 8 Mar 2017 17:33:20 +0100 Subject: [PATCH] refactor: fixes linting errors components/SitePage/index.jsx --- components/SitePage/index.jsx | 51 ++++++++++++++++------------------- 1 file changed, 23 insertions(+), 28 deletions(-) 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;