Update dependencies, use .js file extensions

This commit is contained in:
Gianluca Esposito 2016-02-21 23:45:50 +01:00
parent 4d3c5ca244
commit 65431b45bb
7 changed files with 28 additions and 21 deletions

View file

@ -6,17 +6,18 @@ import { rhythm, fontSizeToMS } from 'utils/typography'
class ReadNext extends React.Component {
render () {
const readNext = this.props.post.readNext
const { pages, post } = this.props
const { readNext } = post
let nextPost
if (readNext) {
nextPost = find(this.props.pages, (page) =>
nextPost = find(pages, (page) =>
includes(page.path, readNext)
)
}
if (!nextPost) {
return React.createElement('noscript', null)
} else {
nextPost = find(this.props.pages, (page) =>
nextPost = find(pages, (page) =>
includes(page.path, readNext.slice(1, -1))
)
// Create pruned version of the body.