Link to button

This commit is contained in:
Peter KW 2024-03-18 00:45:22 +01:00
parent 844e94ed26
commit 070e9cc1e5

View file

@ -1,3 +1,5 @@
import { Link } from "react-router-dom";
import BackButton from "../../Components/BackButton";
import BasicWindow from "../../Components/BasicWindow"; import BasicWindow from "../../Components/BasicWindow";
import Button from "../../Components/Button"; import Button from "../../Components/Button";
@ -6,20 +8,16 @@ function AdminManageProjects(): JSX.Element {
const buttons = ( const buttons = (
<> <>
<Button <Link to="/addProject">
text="Add Project" <Button
onClick={(): void => { text="Add Project"
return; onClick={(): void => {
}} return;
type="button" }}
/> type="button"
<Button />
text="Back" </Link>
onClick={(): void => { <BackButton />
return;
}}
type="button"
/>
</> </>
); );