From b70fc7e9c694031383895d07b4174bc25eb23301 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 18 Dec 2024 14:26:15 -0800 Subject: [PATCH] Fix protected route proptype --- Client/src/Components/ProtectedRoute/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;