Update dependencies, use .js file extensions
This commit is contained in:
parent
4d3c5ca244
commit
65431b45bb
7 changed files with 28 additions and 21 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue