From b683c5d7e35bbc2b3dc7d7941dd2cb58a17aba01 Mon Sep 17 00:00:00 2001 From: Simon Reinsperger Date: Wed, 8 Mar 2017 17:01:28 +0100 Subject: [PATCH] refactor: fixing linting errors for wrappers/md.jsx --- wrappers/md.jsx | 52 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/wrappers/md.jsx b/wrappers/md.jsx index 6148851..2ca54ee 100644 --- a/wrappers/md.jsx +++ b/wrappers/md.jsx @@ -1,34 +1,34 @@ -import React from 'react' -import Helmet from 'react-helmet' -import SitePost from '../components/SitePost' -import SitePage from '../components/SitePage' -import { config } from 'config' +import React from 'react'; +import Helmet from 'react-helmet'; +import { config } from 'config'; + +import SitePost from '../components/SitePost'; +import SitePage from '../components/SitePage'; class MarkdownWrapper extends React.Component { - render() { - const {route} = this.props - const post = route.page.data - let layout, template + render() { + const { route } = this.props; + const post = route.page.data; + const layout = post.layout; + let template; - layout = post.layout - - if (layout != 'page') { - template = - } else { - template = - } - - return ( -
- - { template } -
- ); + if (layout !== 'page') { + template = ; + } else { + template = ; } + + return ( +
+ + {template} +
+ ); + } } MarkdownWrapper.propTypes = { - route: React.PropTypes.object, -} + route: React.PropTypes.object, // eslint-disable-line react/forbid-prop-types +}; -export default MarkdownWrapper +export default MarkdownWrapper;