Added path in main

This commit is contained in:
Mattias 2024-03-14 10:33:00 +01:00
parent 6be1060cff
commit c1aa0769bb

View file

@ -6,6 +6,7 @@ import LoginPage from "./Pages/LoginPage.tsx";
import YourProjectsPage from "./Pages/YourProjectsPage.tsx";
import UserProjectPage from "./Pages/UserPages/UserProjectPage.tsx";
import AdminMenuPage from "./Pages/AdminPages/AdminMenuPage.tsx";
import UserEditTimeReportPage from "./Pages/UserPages/UserEditTimeReportPage.tsx";
// This is where the routes are mounted
const router = createBrowserRouter([
@ -25,6 +26,10 @@ const router = createBrowserRouter([
path: "/admin-menu",
element: <AdminMenuPage />,
},
{
path: "/edit-time-report",
element: <UserEditTimeReportPage />,
},
]);
// Semi-hacky way to get the root element