refactor: fixes linting errors components/SitePage/index.jsx

This commit is contained in:
Simon Reinsperger 2017-03-08 17:33:20 +01:00
parent 7762d68aef
commit 54642a6757

View File

@ -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 (
<div>
<SiteSidebar {...this.props}/>
<div className='content'>
<div className='main'>
<div className='main-inner'>
<div className='blog-page'>
<div className='text'>
<h1>{ post.title }</h1>
<div dangerouslySetInnerHTML={ { __html: post.body} } />
</div>
</div>
</div>
return (
<div>
<SiteSidebar {...this.props} />
<div className="content">
<div className="main">
<div className="main-inner">
<div className="blog-page">
<div className="text">
<h1>{post.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.body }} />
</div>
</div>
</div>
);
}
</div>
</div>
</div>
);
}
}
SitePage.propTypes = {
route: React.PropTypes.object.isRequired,
}
route: React.PropTypes.object.isRequired,
};
export default SitePage
export default SitePage;