diff --git a/src/components/base/base-dialog.tsx b/src/components/base/base-dialog.tsx index db4226c..56d90ea 100644 --- a/src/components/base/base-dialog.tsx +++ b/src/components/base/base-dialog.tsx @@ -8,6 +8,7 @@ import { type SxProps, type Theme, } from "@mui/material"; +import { LoadingButton } from "@mui/lab"; interface Props { title: ReactNode; @@ -19,6 +20,7 @@ interface Props { disableFooter?: boolean; contentSx?: SxProps; children?: ReactNode; + loading?: boolean; onOk?: () => void; onCancel?: () => void; onClose?: () => void; @@ -40,6 +42,7 @@ export const BaseDialog: React.FC = (props) => { disableCancel, disableOk, disableFooter, + loading, } = props; return ( @@ -56,9 +59,13 @@ export const BaseDialog: React.FC = (props) => { )} {!disableOk && ( - + )} )}