Add project name to UserViewTimeReportsPage and add AllTimeReportsInProject component
This commit is contained in:
parent
03819aff44
commit
d0d0e311e5
1 changed files with 8 additions and 2 deletions
|
@ -1,11 +1,17 @@
|
||||||
import BasicWindow from "../../Components/BasicWindow";
|
import BasicWindow from "../../Components/BasicWindow";
|
||||||
import BackButton from "../../Components/BackButton";
|
import BackButton from "../../Components/BackButton";
|
||||||
|
import { useParams } from "react-router-dom";
|
||||||
|
import AllTimeReportsInProject from "../../Components/AllTimeReportsInProject";
|
||||||
|
|
||||||
function UserViewTimeReportsPage(): JSX.Element {
|
function UserViewTimeReportsPage(): JSX.Element {
|
||||||
|
const { projectName } = useParams();
|
||||||
|
|
||||||
const content = (
|
const content = (
|
||||||
<>
|
<>
|
||||||
<h1 className="font-bold text-[30px] mb-[20px]">Your Time Reports</h1>
|
<h1 className="font-bold text-[30px] mb-[20px]">
|
||||||
{/* Här kan du inkludera logiken för att visa användarens tidrapporter */}
|
Your Time Reports In: {projectName}
|
||||||
|
</h1>
|
||||||
|
<AllTimeReportsInProject />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue