diff --git a/src/CONST/index.ts b/src/CONST/index.ts index dfa2ef7ab86b0..c3bb7ec2a798b 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -8134,6 +8134,9 @@ const CONST = { MENU: 'ContextMenu-Menu', EXPLAIN: 'ContextMenu-Explain', }, + CONFIRM_CONTENT: { + CLOSE_BUTTON: 'ConfirmContent-CloseButton', + }, MORE_MENU: { MORE_BUTTON: 'MoreMenu-MoreButton', VIEW_DETAILS: 'MoreMenu-ViewDetails', diff --git a/src/components/ConfirmContent.tsx b/src/components/ConfirmContent.tsx index 3d5af32403028..60cb7d5e97664 100644 --- a/src/components/ConfirmContent.tsx +++ b/src/components/ConfirmContent.tsx @@ -111,7 +111,7 @@ function ConfirmContent({ confirmText = '', cancelText = '', prompt = '', - success = true, + success = false, danger = false, shouldDisableConfirmButtonWhenOffline = false, shouldShowCancelButton = false, @@ -163,6 +163,7 @@ function ConfirmContent({ onPress={onCancel} role={CONST.ROLE.BUTTON} accessibilityLabel={translate('common.close')} + sentryLabel={CONST.SENTRY_LABEL.CONFIRM_CONTENT.CLOSE_BUTTON} > {}, onBackdropPress,