From 36a0df2c92ebe8bfb28758a2552c88101f0356d7 Mon Sep 17 00:00:00 2001 From: BhuvaneshPatil Date: Tue, 3 Sep 2024 08:38:13 +0530 Subject: [PATCH 1/4] feat: update add bank account step page with latest design --- src/languages/en.ts | 1 + src/languages/es.ts | 1 + .../ReimbursementAccount/BankAccountStep.tsx | 69 ++++++++++++------- 3 files changed, 48 insertions(+), 23 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index 30e2dad391d9..a8dc4cffecb4 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -3500,6 +3500,7 @@ export default { continueWithSetup: 'Continue with setup', youreAlmostDone: "You're almost done setting up your bank account, which will let you issue corporate cards, reimburse expenses, collect invoices, and pay bills.", streamlinePayments: 'Streamline payments', + connectBankAccountNote: "Note: Personal bank accounts can't be used for payments on workspaces.", oneMoreThing: 'One more thing!', allSet: "You're all set!", accountDescriptionNoCards: diff --git a/src/languages/es.ts b/src/languages/es.ts index 16b8f6f42ed2..923c60360a70 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -3548,6 +3548,7 @@ export default { continueWithSetup: 'Continuar con la configuración', youreAlmostDone: 'Casi has acabado de configurar tu cuenta bancaria, que te permitirá emitir tarjetas corporativas, reembolsar gastos y cobrar pagar facturas.', streamlinePayments: 'Optimiza pagos', + connectBankAccountNote: 'Nota: No se pueden usar cuentas bancarias personales para realizar pagos en los espacios de trabajo.', oneMoreThing: '¡Una cosa más!', allSet: '¡Todo listo!', accountDescriptionNoCards: diff --git a/src/pages/ReimbursementAccount/BankAccountStep.tsx b/src/pages/ReimbursementAccount/BankAccountStep.tsx index 69e605878725..fc059bb26e57 100644 --- a/src/pages/ReimbursementAccount/BankAccountStep.tsx +++ b/src/pages/ReimbursementAccount/BankAccountStep.tsx @@ -2,11 +2,10 @@ import React from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import {withOnyx} from 'react-native-onyx'; -import Button from '@components/Button'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; -import * as Illustrations from '@components/Icon/Illustrations'; +import LottieAnimations from '@components/LottieAnimations'; import MenuItem from '@components/MenuItem'; import PressableWithoutFeedback from '@components/Pressable/PressableWithoutFeedback'; import ScreenWrapper from '@components/ScreenWrapper'; @@ -36,6 +35,9 @@ type BankAccountStepOnyxProps = { /** If the plaid button has been disabled */ isPlaidDisabled: OnyxEntry; + + /** The details about the Personal bank account we are adding saved in Onyx */ + personalBankAccount: OnyxEntry; }; type BankAccountStepProps = BankAccountStepOnyxProps & { @@ -69,6 +71,7 @@ function BankAccountStep({ reimbursementAccount, onBackButtonPress, isPlaidDisabled = false, + personalBankAccount = {}, }: BankAccountStepProps) { const theme = useTheme(); const styles = useThemeStyles(); @@ -119,34 +122,50 @@ function BankAccountStep({ />
- - {translate('bankAccount.toGetStarted')} - {!!plaidDesktopMessage && ( Link.openExternalLinkWithToken(bankAccountRoute)}>{translate(plaidDesktopMessage)} )} -