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:
Axel Clark 2016-12-10 07:54:47 -05:00
parent 27f9d45422
commit eb9274ae92
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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