mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-14 15:51:54 +01:00
35 lines
801 B
JavaScript
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;
|