diff --git a/apps/yaak-client/components/core/Dialog.tsx b/apps/yaak-client/components/core/Dialog.tsx index e74b7a3d..5bbf29d8 100644 --- a/apps/yaak-client/components/core/Dialog.tsx +++ b/apps/yaak-client/components/core/Dialog.tsx @@ -10,6 +10,7 @@ export interface DialogProps { children: ReactNode; open: boolean; onClose?: () => void; + disableClose?: boolean; disableBackdropClose?: boolean; title?: ReactNode; description?: ReactNode; @@ -27,6 +28,7 @@ export function Dialog({ size = "full", open, onClose, + disableClose, disableBackdropClose, title, description, @@ -42,7 +44,11 @@ export function Dialog({ ); return ( - +
{/*Put close at the end so that it's the last thing to be tabbed to*/} - {!hideX && ( + {!hideX && !disableClose && (
{ const cancel = () => { hide();