Skip to content

Commit

Permalink
Merge pull request #44809 from koko57/fix/44805-wallet-error-page-ove…
Browse files Browse the repository at this point in the history
…rlap

[CP Staging] fix: wrap error screen in the screenwrapper

(cherry picked from commit 2cee64d)
  • Loading branch information
luacmartins authored and OSBotify committed Jul 4, 2024
1 parent 73b3874 commit 84972dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/EnablePayments/EnablePayments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -38,13 +39,17 @@ function EnablePaymentsPage() {

if (userWallet?.errorCode === CONST.WALLET.ERROR.KYC) {
return (
<>
<ScreenWrapper
testID={EnablePaymentsPage.displayName}
includeSafeAreaPaddingBottom={false}
shouldEnablePickerAvoiding={false}
>
<HeaderWithBackButton
title={translate('personalInfoStep.personalInfo')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WALLET)}
/>
<FailedKYC />
</>
</ScreenWrapper>
);
}

Expand Down

0 comments on commit 84972dd

Please sign in to comment.