From 1389cb7ed695223c45fc22aa133a6fce698a4469 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Mon, 26 Jan 2026 20:57:50 +0700 Subject: [PATCH] chore: render button only if primary or secondary button is used --- src/components/modal/ConfirmationModal.tsx | 96 ++++++++++++---------- 1 file changed, 54 insertions(+), 42 deletions(-) diff --git a/src/components/modal/ConfirmationModal.tsx b/src/components/modal/ConfirmationModal.tsx index 98a0b51d..1486b6d5 100644 --- a/src/components/modal/ConfirmationModal.tsx +++ b/src/components/modal/ConfirmationModal.tsx @@ -167,49 +167,61 @@ const ConfirmationModal = ({ {children &&
{children}
} -
- {secondaryButton && secondaryButton.text && ( - - )} + {(secondaryButton || primaryButton) && ( +
+ {secondaryButton && secondaryButton.text && ( + + )} - {primaryButton && primaryButton.text && ( - - )} -
+ {primaryButton && primaryButton.text && ( + + )} +
+ )} );