change backbutton UserEditTimeReport and UserNewTimeReport

This commit is contained in:
pavel Hamawand 2024-03-15 15:22:55 +01:00
parent 6789cc97ce
commit a26499bde9
2 changed files with 5 additions and 15 deletions

View file

@ -1,6 +1,7 @@
import BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button";
import NewTimeReport from "../../Components/TimeReport";
import BackButton from "../../Components/BackButton";
function UserEditTimeReportPage(): JSX.Element {
const content = (
@ -18,12 +19,7 @@ function UserEditTimeReportPage(): JSX.Element {
return;
}}
/>
<Button
text="Back"
onClick={(): void => {
return;
}}
/>
<BackButton />
</>
);

View file

@ -1,7 +1,8 @@
import BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button";
import NewTimeReport from "../../Components/TimeReport";
import { Link } from "react-router-dom";
//import { Link } from "react-router-dom";
import BackButton from "../../Components/BackButton";
function UserNewTimeReportPage(): JSX.Element {
const content = (
@ -19,14 +20,7 @@ function UserNewTimeReportPage(): JSX.Element {
return;
}}
/>
<Link to="/project">
<Button
text="Back"
onClick={(): void => {
return;
}}
/>
</Link>
<BackButton />
</>
);