diff --git a/src/views/AppContent/AppContent.jsx b/src/views/AppContent/AppContent.jsx index f5fd58b..ce1fd90 100644 --- a/src/views/AppContent/AppContent.jsx +++ b/src/views/AppContent/AppContent.jsx @@ -1,6 +1,7 @@ import React, { useEffect, Fragment } from "react"; import { Routes, Route, useNavigate } from "react-router-dom"; import CustomizedSnackbars from "../../views/Snackbar/CustomSnackbar"; +import { useSelector } from "react-redux"; const PrivateRoute = (props) => { const { userId } = useSelector((state) => state.user); @@ -11,7 +12,6 @@ const PrivateRoute = (props) => { } }, [userId]); - return <>{props.children}; }; const AppContent = ({ routes }) => {