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/container/Search.js | |
parent | 30376908301dae90d40532210d382c8edc088ac6 (diff) |
Simplify prop-types
Diffstat (limited to 'src/client/react/components/container/Search.js')
-rw-r--r-- | src/client/react/components/container/Search.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/client/react/components/container/Search.js b/src/client/react/components/container/Search.js index 4f3c6ee..cfddaac 100644 --- a/src/client/react/components/container/Search.js +++ b/src/client/react/components/container/Search.js @@ -125,15 +125,8 @@ Search.propTypes = { selectedResult: PropTypes.string, isExactMatch: PropTypes.bool.isRequired, searchText: PropTypes.string.isRequired, - match: PropTypes.shape({ - params: PropTypes.shape({ - type: PropTypes.string, - value: PropTypes.string, - }).isRequired, - }).isRequired, - history: PropTypes.shape({ - push: PropTypes.func.isRequired, - }).isRequired, + match: PropTypes.object.isRequired, + history: PropTypes.object.isRequired, dispatch: PropTypes.func.isRequired, }; |