Update UserViewTimeReportsPage to include statistics-page

This commit is contained in:
Davenludd 2024-04-14 16:03:53 +02:00
parent 78231eaae9
commit 9148ede977

View file

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