replace mui buttons, move them into bar

This commit is contained in:
Alexander Bentkamp
2023-01-27 17:28:32 +01:00
parent 8c83e802e9
commit 2774fab98c
5 changed files with 56 additions and 31 deletions
+14
View File
@@ -0,0 +1,14 @@
import * as React from 'react';
import { Link, LinkProps } from "react-router-dom";
export interface ButtonProps extends LinkProps {
disabled?: boolean
}
export function Button(props: ButtonProps) {
if (props.disabled) {
return <span className="btn btn-disabled" {...props}>{props.children}</span>
} else {
return <Link className="btn" {...props}>{props.children}</Link>
}
}