diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-02-02 15:57:54 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-02-02 15:57:54 +0100 |
commit | 41f57d90be930fb0af7dace6a12ad5e47edbd0f6 (patch) | |
tree | c534bc5cdd058b14733274c6b9ff729ccdf6b400 /src/client/react/components/page | |
parent | 30376908301dae90d40532210d382c8edc088ac6 (diff) |
Simplify prop-types
Diffstat (limited to 'src/client/react/components/page')
-rw-r--r-- | src/client/react/components/page/User.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client/react/components/page/User.js b/src/client/react/components/page/User.js index 1b7e1ce..202d998 100644 --- a/src/client/react/components/page/User.js +++ b/src/client/react/components/page/User.js @@ -32,12 +32,7 @@ const UserPage = ({ match }) => { }; UserPage.propTypes = { - match: PropTypes.shape({ - params: PropTypes.shape({ - type: PropTypes.string.isRequired, - value: PropTypes.string.isRequired, - }).isRequired, - }).isRequired, + match: PropTypes.object.isRequired, }; export default UserPage; |