diff --git a/src/components/dialog/dialog.tsx b/src/components/dialog/dialog.tsx index 62210946..1ea5883a 100644 --- a/src/components/dialog/dialog.tsx +++ b/src/components/dialog/dialog.tsx @@ -9,8 +9,6 @@ export interface DialogProps { title?: string; onClose?: (submitted: boolean) => void; isCloseable?: boolean; - height?: number; - width?: number; className?: string; children: React.ReactNode; footer?: React.ReactNode | null; @@ -27,18 +25,12 @@ export const Dialog = ({ footer, footerPosition = "end", onClose, - height, - width, title, hasBackground = true, position = "center", }: DialogProps): JSX.Element | null => { const handleClose = (submitted = false) => { - if (!isCloseable) { - return; - } - - if (onClose) { + if (isCloseable && onClose) { onClose(submitted); } }; @@ -82,9 +74,7 @@ export const Dialog = ({ >