From 169e37cf311bcdfb49e0bb97a3f6b0b166b4508f Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Wed, 25 Jun 2025 10:56:36 +0100 Subject: [PATCH] Merge pull request #26567 from overleaf/ae-modal-onconfirm Remove onConfirm from modal props GitOrigin-RevId: 96c6456a0e893aeb544f346c0de3cb2c207f40d4 --- .../ide-react/components/modals/generic-confirm-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx b/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx index de35bee52f..fd27985ba6 100644 --- a/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx +++ b/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx @@ -25,10 +25,10 @@ function GenericConfirmModal({ message, confirmLabel, primaryVariant = 'primary', + onConfirm, ...modalProps }: GenericConfirmModalProps) { const { t } = useTranslation() - const handleConfirmClick = modalProps.onConfirm return ( @@ -42,7 +42,7 @@ function GenericConfirmModal({ modalProps.onHide()}> {t('cancel')} - + {confirmLabel || t('ok')}