feat : add footer , header , base css, progressBar , main and page components
This commit is contained in:
8
src/routes/PrivateRoute.tsx
Normal file
8
src/routes/PrivateRoute.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Navigate } from "react-router-dom";
|
||||
import { isAuthenticated } from "../utils/auth";
|
||||
|
||||
const PrivateRoute = () => {
|
||||
return !isAuthenticated() && <Navigate to="/" />;
|
||||
};
|
||||
|
||||
export default PrivateRoute;
|
||||
Reference in New Issue
Block a user