diff --git a/src/components/ConfirmModal.tsx b/src/components/ConfirmModal.tsx index e9558297e577..cc99ca636488 100755 --- a/src/components/ConfirmModal.tsx +++ b/src/components/ConfirmModal.tsx @@ -19,6 +19,9 @@ type ConfirmModalProps = { /** A callback to call when the form has been closed */ onCancel?: () => void; + /** A callback to call when backdrop is pressed */ + onBackdropPress?: () => void; + /** Modal visibility */ isVisible: boolean; @@ -108,6 +111,7 @@ function ConfirmModal({ success = true, danger = false, onCancel = () => {}, + onBackdropPress = () => {}, shouldDisableConfirmButtonWhenOffline = false, shouldShowCancelButton = true, shouldSetModalVisibility = true, @@ -140,6 +144,7 @@ function ConfirmModal({ { + setShowModal(false); + resetPermissionFlow(); + }; + return ( { + setShowModal(false); + resetPermissionFlow(); + }; return (