Add new route for PM components

This commit is contained in:
Davenludd 2024-03-21 13:58:45 +01:00
parent b656204457
commit e47f12c6d7

View file

@ -31,6 +31,7 @@ import AdminProjectViewMemberInfo from "./Pages/AdminPages/AdminProjectViewMembe
import AdminProjectPage from "./Pages/AdminPages/AdminProjectPage.tsx";
import NotFoundPage from "./Pages/NotFoundPage.tsx";
import UnauthorizedPage from "./Pages/UnauthorizedPage.tsx";
import PMViewOtherUsersTR from "./Pages/ProjectManagerPages/PMViewOtherUsersTR.tsx";
// This is where the routes are mounted
const router = createBrowserRouter([
@ -60,7 +61,7 @@ const router = createBrowserRouter([
element: <UserViewTimeReportsPage />,
},
{
path: "/editTimeReport/:projectName/:weekNumber",
path: "/editTimeReport/:projectName/:fetchWeek",
element: <UserEditTimeReportPage />,
},
{
@ -68,9 +69,13 @@ const router = createBrowserRouter([
element: <PMChangeRole />,
},
{
path: "/otherUsersTimeReports/:projectName/:username/:week",
path: "/otherUsersTimeReports/:projectName/:username",
element: <PMOtherUsersTR />,
},
{
path: "/editOthersTR/:projectName/:username/:fetchedWeek",
element: <PMViewOtherUsersTR />,
},
{
path: "/projectMembers/:projectName",
element: <PMProjectMembers />,
@ -92,7 +97,7 @@ const router = createBrowserRouter([
element: <PMUnsignedReports />,
},
{
path: "/PMViewUnsignedReport/:projectName/:username/:week",
path: "/PMViewUnsignedReport/:projectName/:username/:fetchedWeek",
element: <PMViewUnsignedReport />,
},
{