diff --git a/client/components/Application/Dialogs/DeleteFile.tsx b/client/components/Application/Dialogs/DeleteFile.tsx index 58265f6d7..926f0caef 100644 --- a/client/components/Application/Dialogs/DeleteFile.tsx +++ b/client/components/Application/Dialogs/DeleteFile.tsx @@ -11,9 +11,9 @@ export default function DeleteFileDialog() { updateState({ dialog: undefined })} onConfirm={async () => { await deleteFile(path) diff --git a/client/components/Parts/Buttons/SimpleButton.tsx b/client/components/Parts/Buttons/SimpleButton.tsx new file mode 100644 index 000000000..6e7af2061 --- /dev/null +++ b/client/components/Parts/Buttons/SimpleButton.tsx @@ -0,0 +1,26 @@ +import Typography from '@mui/material/Typography' +import Button, { ButtonProps } from '@mui/material/Button' + +interface SimpleButtonProps extends ButtonProps { + label?: string + small?: boolean +} + +export default function SimpleButton(props: SimpleButtonProps) { + const { label, small, ...others } = props + return ( + + ) +} diff --git a/client/components/Parts/Dialogs/Confirm.tsx b/client/components/Parts/Dialogs/Confirm.tsx index 2e005b330..dbf31a29c 100644 --- a/client/components/Parts/Dialogs/Confirm.tsx +++ b/client/components/Parts/Dialogs/Confirm.tsx @@ -3,9 +3,7 @@ import Box from '@mui/material/Box' import Dialog from '@mui/material/Dialog' import DialogTitle from '@mui/material/DialogTitle' import DialogContent from '@mui/material/DialogContent' -import Cancel from '@mui/icons-material/Cancel' -import CheckCircleIcon from '@mui/icons-material/CheckCircle' -import IconButton from '..//Buttons/Icon' +import SimpleButton from '../Buttons/SimpleButton' import Columns from '../Grids/Columns' export interface ConfirmDialogProps { @@ -57,20 +55,18 @@ export default function ConfirmDialog(props: ConfirmDialogProps) { - -