diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
index 29f168e..92e0a70 100644
--- a/frontend/src/main.tsx
+++ b/frontend/src/main.tsx
@@ -2,152 +2,27 @@ import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
-import LoginPage from "./Pages/LoginPage.tsx";
-import YourProjectsPage from "./Pages/YourProjectsPage.tsx";
-import UserProjectPage from "./Pages/UserPages/UserProjectPage.tsx";
-import Register from "./Components/Register.tsx";
-import AdminMenuPage from "./Pages/AdminPages/AdminMenuPage.tsx";
-import UserEditTimeReportPage from "./Pages/UserPages/UserEditTimeReportPage.tsx";
-import UserNewTimeReportPage from "./Pages/UserPages/UserNewTimeReportPage.tsx";
-import UserViewTimeReportsPage from "./Pages/UserPages/UserViewTimeReportsPage.tsx";
-import PMChangeRole from "./Pages/ProjectManagerPages/PMChangeRole.tsx";
-import PMOtherUsersTR from "./Pages/ProjectManagerPages/PMOtherUsersTR.tsx";
-import PMProjectMembers from "./Pages/ProjectManagerPages/PMProjectMembers.tsx";
-import PMProjectPage from "./Pages/ProjectManagerPages/PMProjectPage.tsx";
-import PMTotalTimeActivity from "./Pages/ProjectManagerPages/PMTotalTimeActivity.tsx";
-import PMTotalTimeRole from "./Pages/ProjectManagerPages/PMTotalTimeRole.tsx";
-import PMUnsignedReports from "./Pages/ProjectManagerPages/PMUnsignedReports.tsx";
-import PMViewUnsignedReport from "./Pages/ProjectManagerPages/PMViewUnsignedReport.tsx";
-import AdminManageUsers from "./Pages/AdminPages/AdminManageUsers.tsx";
-import AdminViewUserInfo from "./Pages/AdminPages/AdminViewUserInfo.tsx";
-import AdminManageProjects from "./Pages/AdminPages/AdminManageProjects.tsx";
-import AdminAddProject from "./Pages/AdminPages/AdminAddProject.tsx";
-import AdminAddUser from "./Pages/AdminPages/AdminAddUser.tsx";
-import AdminChangeUsername from "./Pages/AdminPages/AdminChangeUsername.tsx";
-import AdminProjectAddMember from "./Pages/AdminPages/AdminProjectAddMember.tsx";
-import AdminProjectChangeUserRole from "./Pages/AdminPages/AdminProjectChangeUserRole.tsx";
-import AdminProjectManageMembers from "./Pages/AdminPages/AdminProjectManageMembers.tsx";
-import AdminProjectStatistics from "./Pages/AdminPages/AdminProjectStatistics.tsx";
-import AdminProjectViewMemberInfo from "./Pages/AdminPages/AdminProjectViewMemberInfo.tsx";
-import AdminProjectPage from "./Pages/AdminPages/AdminProjectPage.tsx";
+import App from "./Pages/App";
+import AdminMenuPage from "./Pages/AdminPages/AdminMenuPage";
+import YourProjectsPage from "./Pages/YourProjectsPage";
// This is where the routes are mounted
const router = createBrowserRouter([
{
path: "/",
- element: ,
+ element: ,
},
{
- path: "/your-projects",
+ path: "/admin",
+ element: ,
+ },
+ {
+ path: "/pm",
element: ,
},
{
- path: "/edit-time-report",
- element: ,
- },
- {
- path: "/new-time-report",
- element: ,
- },
- {
- path: "/project",
- element: ,
- },
- {
- path: "/register",
- element: ,
- },
- {
- path: "/admin-menu",
- element: ,
- },
- {
- path: "/project-page",
- element: ,
- },
- {
- path: "/change-role",
- element: ,
- },
- {
- path: "/other-users-time-reports",
- element: ,
- },
- {
- path: "/project-members",
- element: ,
- },
- {
- path: "/PM-project-page",
- element: ,
- },
- {
- path: "/PM-time-activity",
- element: ,
- },
- {
- path: "/PM-time-role",
- element: ,
- },
- {
- path: "/PM-unsigned-reports",
- element: ,
- },
- {
- path: "/PM-view-unsigned-report",
- element: ,
- },
- {
- path: "/admin-add-project",
- element: ,
- },
- {
- path: "/admin-add-user",
- element: ,
- },
- {
- path: "/admin-change-username",
- element: ,
- },
- {
- path: "/admin-manage-projects",
- element: ,
- },
- {
- path: "/admin-manage-users",
- element: ,
- },
- {
- path: "/admin-menu",
- element: ,
- },
- {
- path: "/admin-project-add-member",
- element: ,
- },
- {
- path: "/admin-project-change-user-role",
- element: ,
- },
- {
- path: "/admin-project-manage-members",
- element: ,
- },
- {
- path: "/admin-project-page",
- element: ,
- },
- {
- path: "/admin-project-statistics",
- element: ,
- },
- {
- path: "/admin-project-view-members",
- element: ,
- },
- {
- path: "/admin-view-user",
- element: ,
+ path: "/user",
+ element: ,
},
]);