add edit button to viewTimeReport

This commit is contained in:
pavel Hamawand 2024-03-15 03:41:00 +01:00
parent 901bcd39c5
commit dc902855f4

View file

@ -1,3 +1,4 @@
import { Link } from "react-router-dom";
import BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button";
@ -11,12 +12,22 @@ function UserViewTimeReportsPage(): JSX.Element {
const buttons = (
<>
<Button
text="Back"
onClick={(): void => {
return;
}}
/>
<Link to="/edit-time-report">
<Button
text="Edit"
onClick={function (): void {
throw new Error("Function not implemented.");
}}
/>
</Link>
<Link to="/user-project-page">
<Button
text="Back"
onClick={function (): void {
throw new Error("Function not implemented.");
}}
/>
</Link>
</>
);