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 React from 'react';
import moment from 'moment' import SiteSidebar from '../SiteSidebar';
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 './style.css'; import './style.css';
class SitePage extends React.Component { class SitePage extends React.Component {
render() { render() {
const {route} = this.props const { route } = this.props;
const post = route.page.data const post = route.page.data;
return ( return (
<div> <div>
<SiteSidebar {...this.props}/> <SiteSidebar {...this.props} />
<div className='content'> <div className="content">
<div className='main'> <div className="main">
<div className='main-inner'> <div className="main-inner">
<div className='blog-page'> <div className="blog-page">
<div className='text'> <div className="text">
<h1>{ post.title }</h1> <h1>{post.title}</h1>
<div dangerouslySetInnerHTML={ { __html: post.body} } /> <div dangerouslySetInnerHTML={{ __html: post.body }} />
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
); </div>
} </div>
</div>
);
}
} }
SitePage.propTypes = { SitePage.propTypes = {
route: React.PropTypes.object.isRequired, route: React.PropTypes.object.isRequired,
} };
export default SitePage export default SitePage;