From e7475f9030307bb9fcd0d0bea12cc10529a5b42d Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 12 Dec 2023 16:22:52 -0700 Subject: [PATCH 1/2] use openPersonalBankAccountSetupView --- src/components/KYCWall/BaseKYCWall.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/KYCWall/BaseKYCWall.js b/src/components/KYCWall/BaseKYCWall.js index e229a860dd9f..fa5ddf578626 100644 --- a/src/components/KYCWall/BaseKYCWall.js +++ b/src/components/KYCWall/BaseKYCWall.js @@ -12,6 +12,7 @@ import * as ReportUtils from '@libs/ReportUtils'; import * as PaymentMethods from '@userActions/PaymentMethods'; import * as Policy from '@userActions/Policy'; import * as Wallet from '@userActions/Wallet'; +import * as BankAccounts from '@libs/actions/BankAccounts'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; @@ -118,7 +119,7 @@ function KYCWall({ const selectPaymentMethod = (paymentMethod) => { onSelectPaymentMethod(paymentMethod); if (paymentMethod === CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT) { - Navigation.navigate(addBankAccountRoute); + BankAccounts.openPersonalBankAccountSetupView(); } else if (paymentMethod === CONST.PAYMENT_METHODS.DEBIT_CARD) { Navigation.navigate(addDebitCardRoute); } else if (paymentMethod === CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT) { From 721e733fbbe16386ec68d42c3811939f3858e3a9 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 12 Dec 2023 16:26:21 -0700 Subject: [PATCH 2/2] fix style --- src/components/KYCWall/BaseKYCWall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/KYCWall/BaseKYCWall.js b/src/components/KYCWall/BaseKYCWall.js index fa5ddf578626..e9eb1e4c54c8 100644 --- a/src/components/KYCWall/BaseKYCWall.js +++ b/src/components/KYCWall/BaseKYCWall.js @@ -4,6 +4,7 @@ import {Dimensions} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import _ from 'underscore'; import AddPaymentMethodMenu from '@components/AddPaymentMethodMenu'; +import * as BankAccounts from '@libs/actions/BankAccounts'; import getClickedTargetLocation from '@libs/getClickedTargetLocation'; import Log from '@libs/Log'; import Navigation from '@libs/Navigation/Navigation'; @@ -12,7 +13,6 @@ import * as ReportUtils from '@libs/ReportUtils'; import * as PaymentMethods from '@userActions/PaymentMethods'; import * as Policy from '@userActions/Policy'; import * as Wallet from '@userActions/Wallet'; -import * as BankAccounts from '@libs/actions/BankAccounts'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES';