diff --git a/src/languages/en.ts b/src/languages/en.ts index 66d1e7c73c90..f99b8435056d 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -3541,12 +3541,8 @@ 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', - oneMoreThing: 'One more thing!', allSet: "You're all set!", - accountDescriptionNoCards: - 'This bank account will be used to reimburse expenses, collect invoices, and pay bills.\n\nPlease add a work email as a secondary login to enable the Expensify Card.', accountDescriptionWithCards: 'This bank account will be used to issue corporate cards, reimburse expenses, collect invoices, and pay bills.', - addWorkEmail: 'Add work email', letsFinishInChat: "Let's finish in chat!", almostDone: 'Almost done!', disconnectBankAccount: 'Disconnect bank account', diff --git a/src/languages/es.ts b/src/languages/es.ts index 54402fd1d6d5..bd0fc61ba50b 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -3591,12 +3591,8 @@ 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', - oneMoreThing: '¡Una cosa más!', allSet: '¡Todo listo!', - accountDescriptionNoCards: - 'Esta cuenta bancaria se utilizará para reembolsar gastos y cobrar y pagar facturas.\n\nPor favor, añade un correo electrónico de trabajo como tu nombre de usuario secundario para activar la Tarjeta Expensify.', accountDescriptionWithCards: 'Esta cuenta bancaria se utilizará para emitir tarjetas corporativas, reembolsar gastos y cobrar y pagar facturas.', - addWorkEmail: 'Añadir correo electrónico de trabajo', letsFinishInChat: '¡Continuemos en el chat!', almostDone: '¡Casi listo!', disconnectBankAccount: 'Desconectar cuenta bancaria', diff --git a/src/pages/ReimbursementAccount/EnableBankAccount/EnableBankAccount.tsx b/src/pages/ReimbursementAccount/EnableBankAccount/EnableBankAccount.tsx index 599a7a1cf6f1..f5d2cf5adb0c 100644 --- a/src/pages/ReimbursementAccount/EnableBankAccount/EnableBankAccount.tsx +++ b/src/pages/ReimbursementAccount/EnableBankAccount/EnableBankAccount.tsx @@ -1,7 +1,5 @@ import React from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import {withOnyx} from 'react-native-onyx'; -import Button from '@components/Button'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import getBankIcon from '@components/Icon/BankIcons'; import * as Expensicons from '@components/Icon/Expensicons'; @@ -15,19 +13,12 @@ import Text from '@components/Text'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import WorkspaceResetBankAccountModal from '@pages/workspace/WorkspaceResetBankAccountModal'; -import * as Link from '@userActions/Link'; import * as BankAccounts from '@userActions/ReimbursementAccount'; import CONST from '@src/CONST'; -import ONYXKEYS from '@src/ONYXKEYS'; -import type {ReimbursementAccount, User} from '@src/types/onyx'; +import type {ReimbursementAccount} from '@src/types/onyx'; import {isEmptyObject} from '@src/types/utils/EmptyObject'; -type EnableBankAccountOnyxProps = { - /** Object with various information about the user */ - user: OnyxEntry; -}; - -type EnableBankAccountProps = EnableBankAccountOnyxProps & { +type EnableBankAccountProps = { /** Bank account currently in setup */ reimbursementAccount: OnyxEntry; @@ -35,13 +26,12 @@ type EnableBankAccountProps = EnableBankAccountOnyxProps & { onBackButtonPress: () => void; }; -function EnableBankAccount({reimbursementAccount, user, onBackButtonPress}: EnableBankAccountProps) { +function EnableBankAccount({reimbursementAccount, onBackButtonPress}: EnableBankAccountProps) { const styles = useThemeStyles(); const {translate} = useLocalize(); const achData = reimbursementAccount?.achData ?? {}; const {icon, iconSize} = getBankIcon({bankName: achData.bankName, styles}); - const isUsingExpensifyCard = user?.isUsingExpensifyCard; const formattedBankAccountNumber = achData.accountNumber ? `${translate('bankAccount.accountEnding')} ${achData.accountNumber.slice(-4)}` : ''; const bankAccountOwnerName = achData.addressName; const errors = reimbursementAccount?.errors ?? {}; @@ -63,8 +53,8 @@ function EnableBankAccount({reimbursementAccount, user, onBackButtonPress}: Enab />
- - {!isUsingExpensifyCard ? translate('workspace.bankAccount.accountDescriptionNoCards') : translate('workspace.bankAccount.accountDescriptionWithCards')} - - {!isUsingExpensifyCard && ( -
- {user?.isCheckingDomain && {translate('workspace.card.checkingDomain')}}
{shouldShowResetModal && } @@ -116,8 +90,4 @@ function EnableBankAccount({reimbursementAccount, user, onBackButtonPress}: Enab EnableBankAccount.displayName = 'EnableStep'; -export default withOnyx({ - user: { - key: ONYXKEYS.USER, - }, -})(EnableBankAccount); +export default EnableBankAccount;