Update UserViewTimeReportsPage to include Total Time In Project button

This commit is contained in:
Davenludd 2024-04-14 15:25:13 +02:00
parent 6c64dfcb0e
commit 8e60ba405b

View file

@ -1,7 +1,8 @@
import BasicWindow from "../../Components/BasicWindow";
import BackButton from "../../Components/BackButton";
import { useParams } from "react-router-dom";
import { useParams, Link } from "react-router-dom";
import AllTimeReportsInProject from "../../Components/AllTimeReportsInProject";
import Button from "../../Components/Button";
function UserViewTimeReportsPage(): JSX.Element {
const { projectName } = useParams();
@ -17,6 +18,15 @@ function UserViewTimeReportsPage(): JSX.Element {
const buttons = (
<>
<Link to={`/viewStatistics/${projectName}`}>
<Button
text="Total Time In Project"
onClick={(): void => {
return;
}}
type={"button"}
/>
</Link>
<BackButton />
</>
);