Ticket edit updates

This commit is contained in:
Darren Clarke 2024-08-07 15:25:53 +02:00
parent 2568547384
commit 87724bb7b8
9 changed files with 297 additions and 352 deletions

View file

@ -5,6 +5,7 @@ import { colors } from "../styles/theme";
interface InternalButtonProps {
text: string;
disabled: boolean;
color?: string;
kind?: "primary" | "secondary" | "destructive";
type?: string;
@ -27,12 +28,14 @@ export const InternalButton: FC<InternalButtonProps> = ({
text,
color,
kind,
disabled,
type = "button",
onClick,
}) => (
<MUIButton
variant="contained"
disableElevation
disabled={disabled}
onClick={onClick}
type={type}
href=""
@ -56,6 +59,7 @@ export const InternalButton: FC<InternalButtonProps> = ({
interface ButtonProps {
text: string;
disabled?: boolean;
color?: string;
kind?: "primary" | "secondary" | "destructive";
type?: string;
@ -65,6 +69,7 @@ interface ButtonProps {
export const Button: FC<ButtonProps> = ({
text,
disabled = false,
color,
type,
kind,
@ -75,6 +80,7 @@ export const Button: FC<ButtonProps> = ({
<Link href={href} passHref>
<InternalButton
text={text}
disabled={disabled}
color={color}
kind={kind}
type={type}
@ -84,6 +90,7 @@ export const Button: FC<ButtonProps> = ({
) : (
<InternalButton
text={text}
disabled={disabled}
color={color}
kind={kind}
type={type}