rickvanlieshout.com/components/SitePage/index.jsx

35 lines
801 B
JavaScript

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;
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,
};
export default SitePage;