Merge pull request #11 from abisz/patch-3

Fixes not rendering of ReadNext component
This commit is contained in:
Alexander S 2016-09-17 23:27:49 +03:00 committed by GitHub
commit 20b85cd54c

View File

@ -7,7 +7,8 @@ import './style.css'
class ReadNext extends React.Component { class ReadNext extends React.Component {
render() { render() {
const {pages, post} = this.props const {post} = this.props
const {pages} = this.props.route
const {readNext} = post const {readNext} = post
let nextPost let nextPost
@ -40,4 +41,4 @@ ReadNext.propTypes = {
pages: React.PropTypes.array, pages: React.PropTypes.array,
} }
export default ReadNext export default ReadNext