Update routes and components for PMViewUnsignedReport
This commit is contained in:
parent
ebc59e0c11
commit
a31a50965f
4 changed files with 5 additions and 28 deletions
|
@ -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
|
||||
|
|
|
@ -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 = (
|
||||
<>
|
||||
|
|
|
@ -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'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 />
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -92,7 +92,7 @@ const router = createBrowserRouter([
|
|||
element: <PMUnsignedReports />,
|
||||
},
|
||||
{
|
||||
path: "/PMViewUnsignedReport",
|
||||
path: "/PMViewUnsignedReport/:projectName/:username/:week",
|
||||
element: <PMViewUnsignedReport />,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue