2017-03-08 17:33:20 +01:00
|
|
|
import React from 'react';
|
|
|
|
import SiteSidebar from '../SiteSidebar';
|
2016-06-03 01:32:38 +02:00
|
|
|
import './style.css';
|
2016-03-11 23:28:19 +01:00
|
|
|
|
2016-06-03 13:05:50 +02:00
|
|
|
class SitePage extends React.Component {
|
2017-03-08 17:33:20 +01:00
|
|
|
render() {
|
|
|
|
const { route } = this.props;
|
|
|
|
const post = route.page.data;
|
2016-03-11 23:28:19 +01:00
|
|
|
|
2017-03-08 17:33:20 +01:00
|
|
|
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 }} />
|
2016-03-11 23:28:19 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-08 17:33:20 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2016-03-11 23:28:19 +01:00
|
|
|
}
|
|
|
|
|
2016-06-03 13:05:50 +02:00
|
|
|
SitePage.propTypes = {
|
2017-03-08 17:33:20 +01:00
|
|
|
route: React.PropTypes.object.isRequired,
|
|
|
|
};
|
2016-03-11 23:28:19 +01:00
|
|
|
|
2017-03-08 17:33:20 +01:00
|
|
|
export default SitePage;
|