diff --git a/Client/src/Components/ProtectedRoute/index.jsx b/Client/src/Components/ProtectedRoute/index.jsx index 7a71aef7e..313500338 100644 --- a/Client/src/Components/ProtectedRoute/index.jsx +++ b/Client/src/Components/ProtectedRoute/index.jsx @@ -26,7 +26,7 @@ const ProtectedRoute = ({ children }) => { }; ProtectedRoute.propTypes = { - children: PropTypes.elementType.isRequired, + children: PropTypes.element.isRequired, }; export default ProtectedRoute;