diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-01-28 16:10:10 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-01-28 16:10:10 +0100 |
commit | 9f438225db07b7214e4a41d133634309cba80073 (patch) | |
tree | 46d77c9667daebd7da90c144b1fac71335dc5b5b /src/client/react | |
parent | 3b98d4c4f13424c89a10580065075998d37ae857 (diff) |
Fix View.js prop types
Diffstat (limited to 'src/client/react')
-rw-r--r-- | src/client/react/components/container/View.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/react/components/container/View.js b/src/client/react/components/container/View.js index be550cd..7539609 100644 --- a/src/client/react/components/container/View.js +++ b/src/client/react/components/container/View.js @@ -54,11 +54,12 @@ class View extends React.Component { View.propTypes = { user: PropTypes.string, + week: PropTypes.number.isRequired, dispatch: PropTypes.func.isRequired, - schedules: PropTypes.objectOf(PropTypes.shape({ + schedules: PropTypes.objectOf(PropTypes.objectOf(PropTypes.shape({ state: PropTypes.string.isRequired, htmlStr: PropTypes.string, - })).isRequired, + }))).isRequired, }; View.defaultProps = { |