We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92fae12 commit fecadb5Copy full SHA for fecadb5
client/routes.jsx
@@ -1,3 +1,4 @@
1
+import PropTypes from 'prop-types';
2
import React, { useEffect } from 'react';
3
import { useDispatch } from 'react-redux';
4
import { Route as RouterRoute, Switch } from 'react-router-dom';
@@ -47,7 +48,10 @@ const withParams = (Component) => (props) => (
47
48
const Route = ({ component, ...props }) => (
49
<RouterRoute component={withParams(component)} {...props} />
50
);
-Route.propTypes = { ...RouterRoute.propTypes };
51
+Route.propTypes = {
52
+ ...RouterRoute.propTypes,
53
+ component: PropTypes.elementType.isRequired
54
+};
55
56
const routes = (
57
<Switch>
0 commit comments