mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-13 15:29:16 +01:00
Merge pull request #26 from axelclark/react-warnings
Updates to remove React warnings
This commit is contained in:
commit
9319989198
@ -33,8 +33,7 @@ class SitePage extends React.Component {
|
||||
}
|
||||
|
||||
SitePage.propTypes = {
|
||||
post: React.PropTypes.object.isRequired,
|
||||
pages: React.PropTypes.array,
|
||||
route: React.PropTypes.object.isRequired,
|
||||
}
|
||||
|
||||
export default SitePage
|
||||
|
@ -46,8 +46,7 @@ class SitePost extends React.Component {
|
||||
}
|
||||
|
||||
SitePost.propTypes = {
|
||||
post: React.PropTypes.object.isRequired,
|
||||
pages: React.PropTypes.array,
|
||||
route: React.PropTypes.object.isRequired
|
||||
}
|
||||
|
||||
export default SitePost
|
||||
|
@ -23,7 +23,7 @@ class SiteIndex extends React.Component {
|
||||
const category = access(page, 'data.category')
|
||||
|
||||
pageLinks.push(
|
||||
<div className='blog-post'>
|
||||
<div className='blog-post' key={ title }>
|
||||
<time dateTime={ moment(datePublished).format('MMMM D, YYYY') }>
|
||||
{ moment(datePublished).format('MMMM YYYY') }
|
||||
</time>
|
||||
|
Loading…
Reference in New Issue
Block a user