feat : add footer , header , base css, progressBar , main and page components

This commit is contained in:
Ali Josheghani
2024-05-20 20:40:48 +03:30
parent 1aee06b717
commit fd7bc724f9
65 changed files with 4784 additions and 143 deletions

View 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;

8
src/routes/routes.tsx Normal file
View File

@@ -0,0 +1,8 @@
const router = [
{ id: 1, name: "فروشگاه", path: "/" },
{ id: 2, name: "آموزش", path: "tutorial" },
{ id: 3, name: "قوانین و مقررات", path: "rule" },
{ id: 4, name: "درباره ما", path: "about" },
];
export default router;