diff --git a/packages/frontend/src/components/shared/ConfirmDialog.tsx b/packages/frontend/src/components/shared/ConfirmDialog.tsx
index 1de20e98..9a943d54 100644
--- a/packages/frontend/src/components/shared/ConfirmDialog.tsx
+++ b/packages/frontend/src/components/shared/ConfirmDialog.tsx
@@ -1,16 +1,10 @@
import React from 'react';
import { color } from '@material-tailwind/react/types/components/button';
-import {
- Typography,
- Button,
- Dialog,
- DialogHeader,
- DialogBody,
- DialogFooter,
-} from '@material-tailwind/react';
+import { Modal, ModalProps } from './Modal';
+import { Button } from './Button';
-type ConfirmDialogProp = {
+type ConfirmDialogProp = ModalProps & {
children: React.ReactNode;
dialogTitle: string;
open: boolean;
@@ -23,42 +17,24 @@ type ConfirmDialogProp = {
const ConfirmDialog = ({
children,
dialogTitle,
- open,
handleOpen,
confirmButtonTitle,
handleConfirm,
- color,
+ ...props
}: ConfirmDialogProp) => {
return (
-
+
+
+ {dialogTitle}
+ {children}
+
+
+
+
+
+
);
};