From c61ddceb4a5c6e6bf6229ae62248e6ce62d8d3d8 Mon Sep 17 00:00:00 2001 From: Aviv Turgeman Date: Wed, 6 Sep 2023 18:50:59 +0300 Subject: [PATCH] Fix comments Signed-off-by: Aviv Turgeman --- .../components/ConfirmDeleteCatalog/ConfirmDeleteCatalog.tsx | 2 +- client/src/app/components/ConfirmDialog.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/app/components/ConfirmDeleteCatalog/ConfirmDeleteCatalog.tsx b/client/src/app/components/ConfirmDeleteCatalog/ConfirmDeleteCatalog.tsx index 1b31b1b39f..657b0b4ee8 100644 --- a/client/src/app/components/ConfirmDeleteCatalog/ConfirmDeleteCatalog.tsx +++ b/client/src/app/components/ConfirmDeleteCatalog/ConfirmDeleteCatalog.tsx @@ -77,7 +77,7 @@ const ConfirmDeleteDialog: FC = ({ titleIconVariant={titleIconVariant} isOpen={isOpen} onClose={handleClose} - aria-label={t("Confirm delete dialog")} + aria-label="Confirm delete dialog" actions={[confirmBtn, cancelBtn]} title={t("dialog.title.delete", { what: titleWhat, diff --git a/client/src/app/components/ConfirmDialog.tsx b/client/src/app/components/ConfirmDialog.tsx index fb29f6a150..f42e046c44 100644 --- a/client/src/app/components/ConfirmDialog.tsx +++ b/client/src/app/components/ConfirmDialog.tsx @@ -22,7 +22,6 @@ export interface ConfirmDialogProps { cancelBtnLabel: string; inProgress?: boolean; - submitDisabled?: boolean; confirmBtnVariant: ButtonVariant; onClose: () => void; @@ -38,7 +37,6 @@ export const ConfirmDialog: React.FC = ({ confirmBtnLabel, cancelBtnLabel, inProgress, - submitDisabled, confirmBtnVariant, onClose, onConfirm, @@ -50,7 +48,7 @@ export const ConfirmDialog: React.FC = ({ key="confirm" aria-label="confirm" variant={confirmBtnVariant} - isDisabled={submitDisabled || inProgress} + isDisabled={inProgress} onClick={onConfirm} > {confirmBtnLabel}