From 2171d9f9210a574dcff97b14e1f5c8751112432c Mon Sep 17 00:00:00 2001 From: Alexandre Monjol Date: Fri, 12 Jul 2024 12:10:05 +0200 Subject: [PATCH 1/3] misc(warning-dialog): allow to disable continue CTA --- src/components/WarningDialog.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/WarningDialog.tsx b/src/components/WarningDialog.tsx index 96ed5753e..84db25fa5 100644 --- a/src/components/WarningDialog.tsx +++ b/src/components/WarningDialog.tsx @@ -13,6 +13,7 @@ interface WarningDialogProps extends Omit { mode?: keyof typeof WarningDialogMode continueText: string forceOpen?: boolean + disableOnContinue?: boolean } export interface WarningDialogRef extends DialogRef {} @@ -24,6 +25,7 @@ export const WarningDialog = forwardRef( continueText, mode = WarningDialogMode.danger, forceOpen = false, + disableOnContinue = false, ...props }: WarningDialogProps, ref, @@ -41,6 +43,7 @@ export const WarningDialog = forwardRef( {translate('text_6244277fe0975300fe3fb94a')}