mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
Update required prop for SitePost and Site Page
* Changed required prop from post to route * Removed propType for pages * These are objects on route prop and not passed in individually * Closes #25
This commit is contained in:
parent
27f9d45422
commit
eb9274ae92
@ -33,8 +33,7 @@ class SitePage extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SitePage.propTypes = {
|
SitePage.propTypes = {
|
||||||
post: React.PropTypes.object.isRequired,
|
route: React.PropTypes.object.isRequired,
|
||||||
pages: React.PropTypes.array,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SitePage
|
export default SitePage
|
||||||
|
@ -46,8 +46,7 @@ class SitePost extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SitePost.propTypes = {
|
SitePost.propTypes = {
|
||||||
post: React.PropTypes.object.isRequired,
|
route: React.PropTypes.object.isRequired
|
||||||
pages: React.PropTypes.array,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SitePost
|
export default SitePost
|
||||||
|
Loading…
Reference in New Issue
Block a user