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 BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button"; import Button from "../../Components/Button";
@ -11,12 +12,22 @@ function UserViewTimeReportsPage(): JSX.Element {
const buttons = ( const buttons = (
<> <>
<Button <Link to="/edit-time-report">
text="Back" <Button
onClick={(): void => { text="Edit"
return; 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>
</> </>
); );