From 84972dd272c9695c4cb0c109020fa5406d15af45 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 4 Jul 2024 15:00:59 -0600 Subject: [PATCH] Merge pull request #44809 from koko57/fix/44805-wallet-error-page-overlap [CP Staging] fix: wrap error screen in the screenwrapper (cherry picked from commit 2cee64d34f3f7fd5c163777bbafc10208864d8e9) --- src/pages/EnablePayments/EnablePayments.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/EnablePayments/EnablePayments.tsx b/src/pages/EnablePayments/EnablePayments.tsx index b8501551204a..742202e43bb3 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,17 @@ function EnablePaymentsPage() { if (userWallet?.errorCode === CONST.WALLET.ERROR.KYC) { return ( - <> + Navigation.goBack(ROUTES.SETTINGS_WALLET)} /> - + ); }