Update routes and components for PMViewUnsignedReport

This commit is contained in:
Mattias 2024-03-21 12:36:14 +01:00
parent ebc59e0c11
commit a31a50965f
4 changed files with 5 additions and 28 deletions

View file

@ -109,7 +109,7 @@ function DisplayUserProject(): JSX.Element {
<div className="flex">
<div className="ml-auto flex space-x-4">
<Link
to={`/otherUsersTimeReports/${projectName}/${unsignedReport.username}/${unsignedReport.week}`}
to={`/PMViewUnsignedReport/${projectName}/${unsignedReport.username}/${unsignedReport.week}`}
>
<h1 className="underline cursor-pointer font-bold">
View Report

View file

@ -1,13 +1,8 @@
import BasicWindow from "../../Components/BasicWindow";
import BackButton from "../../Components/BackButton";
import ViewOtherTimeReport from "../../Components/ViewOtherTimeReport";
function PMOtherUsersTR(): JSX.Element {
const content = (
<>
<ViewOtherTimeReport />
</>
);
const content = <></>;
const buttons = (
<>

View file

@ -1,34 +1,16 @@
import BackButton from "../../Components/BackButton";
import BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button";
import TimeReport from "../../Components/NewWeeklyReport";
import ViewOtherTimeReport from "../../Components/ViewOtherTimeReport";
function PMViewUnsignedReport(): JSX.Element {
const content = (
<>
<h1 className="font-bold text-[30px] mb-[20px]">
Username&apos;s Time Report
</h1>
<TimeReport />
<ViewOtherTimeReport />
</>
);
const buttons = (
<>
<Button
text="Sign"
onClick={(): void => {
return;
}}
type="button"
/>
<Button
text="Save"
onClick={(): void => {
return;
}}
type="button"
/>
<BackButton />
</>
);

View file

@ -92,7 +92,7 @@ const router = createBrowserRouter([
element: <PMUnsignedReports />,
},
{
path: "/PMViewUnsignedReport",
path: "/PMViewUnsignedReport/:projectName/:username/:week",
element: <PMViewUnsignedReport />,
},
{