mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-25 22:39:41 +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 = {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user