Ticket edit updates
This commit is contained in:
parent
2568547384
commit
87724bb7b8
9 changed files with 297 additions and 352 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue