From 7b68de93ea7c1cf1fbe74dffa5ad0f971cecfe61 Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Thu, 4 Jul 2024 09:49:35 +0200 Subject: [PATCH 1/2] fix: wrap error screen in the screenwrapper --- src/pages/EnablePayments/EnablePayments.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/EnablePayments/EnablePayments.tsx b/src/pages/EnablePayments/EnablePayments.tsx index b8501551204a..48bb23f28d56 100644 --- a/src/pages/EnablePayments/EnablePayments.tsx +++ b/src/pages/EnablePayments/EnablePayments.tsx @@ -2,6 +2,7 @@ import React, {useEffect} from 'react'; import {useOnyx} from 'react-native-onyx'; import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; +import ScreenWrapper from '@components/ScreenWrapper'; import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; import Navigation from '@libs/Navigation/Navigation'; @@ -38,13 +39,18 @@ function EnablePaymentsPage() { if (userWallet?.errorCode === CONST.WALLET.ERROR.KYC) { return ( - <> + Navigation.goBack(ROUTES.SETTINGS_WALLET)} /> - + ); } From 32a081075b6200cf600821337386de2820c702f8 Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Thu, 4 Jul 2024 15:38:38 +0200 Subject: [PATCH 2/2] fix: remove unnecessary prop --- src/pages/EnablePayments/EnablePayments.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/EnablePayments/EnablePayments.tsx b/src/pages/EnablePayments/EnablePayments.tsx index 48bb23f28d56..742202e43bb3 100644 --- a/src/pages/EnablePayments/EnablePayments.tsx +++ b/src/pages/EnablePayments/EnablePayments.tsx @@ -43,7 +43,6 @@ function EnablePaymentsPage() { testID={EnablePaymentsPage.displayName} includeSafeAreaPaddingBottom={false} shouldEnablePickerAvoiding={false} - shouldShowOfflineIndicator >