Skip to content

Commit 84972dd

Browse files
luacmartinsOSBotify
authored andcommitted
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 2cee64d)
1 parent 73b3874 commit 84972dd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/pages/EnablePayments/EnablePayments.tsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, {useEffect} from 'react';
22
import {useOnyx} from 'react-native-onyx';
33
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
44
import HeaderWithBackButton from '@components/HeaderWithBackButton';
5+
import ScreenWrapper from '@components/ScreenWrapper';
56
import useLocalize from '@hooks/useLocalize';
67
import useNetwork from '@hooks/useNetwork';
78
import Navigation from '@libs/Navigation/Navigation';
@@ -38,13 +39,17 @@ function EnablePaymentsPage() {
3839

3940
if (userWallet?.errorCode === CONST.WALLET.ERROR.KYC) {
4041
return (
41-
<>
42+
<ScreenWrapper
43+
testID={EnablePaymentsPage.displayName}
44+
includeSafeAreaPaddingBottom={false}
45+
shouldEnablePickerAvoiding={false}
46+
>
4247
<HeaderWithBackButton
4348
title={translate('personalInfoStep.personalInfo')}
4449
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WALLET)}
4550
/>
4651
<FailedKYC />
47-
</>
52+
</ScreenWrapper>
4853
);
4954
}
5055

0 commit comments

Comments
 (0)