diff --git a/src/pages/settings/Security/TwoFactorAuth/IsEnabledPage.js b/src/pages/settings/Security/TwoFactorAuth/IsEnabledPage.js index 1dc0b8017095..01d986e2f4e5 100644 --- a/src/pages/settings/Security/TwoFactorAuth/IsEnabledPage.js +++ b/src/pages/settings/Security/TwoFactorAuth/IsEnabledPage.js @@ -11,6 +11,7 @@ import * as Expensicons from '../../../../components/Icon/Expensicons'; import themeColors from '../../../../styles/themes/default'; import styles from '../../../../styles/styles'; import ConfirmModal from '../../../../components/ConfirmModal'; +import FullPageOfflineBlockingView from '../../../../components/BlockingViews/FullPageOfflineBlockingView'; const defaultProps = {}; @@ -23,43 +24,45 @@ function IsEnabledPage(props) { title={props.translate('twoFactorAuth.headerTitle')} onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_SECURITY)} /> - -
{ - setIsConfirmModalVisible(true); + + +
{ + setIsConfirmModalVisible(true); + }, + icon: Expensicons.Close, + iconFill: themeColors.danger, + wrapperStyle: [styles.cardMenuItem], }, - icon: Expensicons.Close, - iconFill: themeColors.danger, - wrapperStyle: [styles.cardMenuItem], - }, - ]} - containerStyles={[styles.twoFactorAuthSection]} - > - - {props.translate('twoFactorAuth.whatIsTwoFactorAuth')} - -
- { - setIsConfirmModalVisible(false); - Navigation.navigate(ROUTES.SETTINGS_2FA_DISABLE); - }} - onCancel={() => setIsConfirmModalVisible(false)} - onModalHide={() => setIsConfirmModalVisible(false)} - isVisible={isConfirmModalVisible} - prompt={props.translate('twoFactorAuth.disableTwoFactorAuthConfirmation')} - confirmText={props.translate('twoFactorAuth.disable')} - cancelText={props.translate('common.cancel')} - shouldShowCancelButton - danger - /> -
+ ]} + containerStyles={[styles.twoFactorAuthSection]} + > + + {props.translate('twoFactorAuth.whatIsTwoFactorAuth')} + +
+ { + setIsConfirmModalVisible(false); + Navigation.navigate(ROUTES.SETTINGS_2FA_DISABLE); + }} + onCancel={() => setIsConfirmModalVisible(false)} + onModalHide={() => setIsConfirmModalVisible(false)} + isVisible={isConfirmModalVisible} + prompt={props.translate('twoFactorAuth.disableTwoFactorAuthConfirmation')} + confirmText={props.translate('twoFactorAuth.disable')} + cancelText={props.translate('common.cancel')} + shouldShowCancelButton + danger + /> +
+ ); }