aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/page
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-02 15:57:54 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-02 15:57:54 +0100
commit41f57d90be930fb0af7dace6a12ad5e47edbd0f6 (patch)
treec534bc5cdd058b14733274c6b9ff729ccdf6b400 /src/client/react/components/page
parent30376908301dae90d40532210d382c8edc088ac6 (diff)
Simplify prop-types
Diffstat (limited to 'src/client/react/components/page')
-rw-r--r--src/client/react/components/page/User.js7
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;