Skip to content

Commit

Permalink
Use phrase with signout link when trying to add bank account on unval…
Browse files Browse the repository at this point in the history
…idated account
  • Loading branch information
francoisl committed Dec 8, 2023
1 parent 2aab3e8 commit dfda5ad
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1190,8 +1190,10 @@ export default {
toGetStarted: 'Add a bank account and issue corporate cards, reimburse expenses, collect invoice payments, and pay bills, all from one place.',
plaidBodyCopy: 'Give your employees an easier way to pay - and get paid back - for company expenses.',
checkHelpLine: 'Your routing number and account number can be found on a check for the account.',
validateAccountError:
'In order to finish setting up your bank account, you must validate your account. Please check your email to validate your account, and return here to finish up!',
validateAccountError: {
phrase1: 'Hold up! We need you to validate your account first. To do so, ',
phrase2: 'sign back in with a magic code',
},
hasPhoneLoginError: 'To add a verified bank account please ensure your primary login is a valid email and try again. You can add your phone number as a secondary login.',
hasBeenThrottledError: 'There was an error adding your bank account. Please wait a few minutes and try again.',
hasCurrencyError: 'Oops! It appears that your workspace currency is set to a different currency than USD. To proceed, please set it to USD and try again',
Expand Down
6 changes: 4 additions & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,10 @@ export default {
toGetStarted: 'Añade una cuenta bancaria y emite tarjetas corporativas, reembolsa gastos y cobra y paga facturas, todo desde un mismo lugar.',
plaidBodyCopy: 'Ofrezca a sus empleados una forma más sencilla de pagar - y recuperar - los gastos de la empresa.',
checkHelpLine: 'Su número de ruta y número de cuenta se pueden encontrar en un cheque de la cuenta bancaria.',
validateAccountError:
'Para terminar de configurar tu cuenta bancaria, debes validar tu cuenta de Expensify. Por favor, revisa tu correo electrónico para validar tu cuenta y vuelve aquí para continuar.',
validateAccountError: {
phrase1: 'Hold up! We need you to validate your account first. To do so, ',
phrase2: 'sign back in with a magic code',
},
hasPhoneLoginError:
'Para añadir una cuenta bancaria verificada, asegúrate de que tu nombre de usuario principal sea un correo electrónico válido y vuelve a intentarlo. Puedes añadir tu número de teléfono como nombre de usuario secundario.',
hasBeenThrottledError: 'Se produjo un error al intentar añadir tu cuenta bancaria. Por favor, espera unos minutos e inténtalo de nuevo.',
Expand Down
8 changes: 7 additions & 1 deletion src/pages/ReimbursementAccount/BankAccountStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import CONFIG from '@src/CONFIG';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import variables from '@styles/variables';
import * as Session from '@userActions/Session';
import BankAccountManualStep from './BankAccountManualStep';
import BankAccountPlaidStep from './BankAccountPlaidStep';
import StepPropTypes from './StepPropTypes';
Expand Down Expand Up @@ -162,7 +164,11 @@ function BankAccountStep(props) {
fill={theme.danger}
/>

<Text style={[styles.mutedTextLabel, styles.ml4, styles.flex1]}>{props.translate('bankAccount.validateAccountError')}</Text>
<Text style={[styles.mutedTextLabel, styles.ml4, styles.flex1]}>
{props.translate('bankAccount.validateAccountError.phrase1')}
<TextLink fontSize={variables.fontSizeLabel} onPress={Session.signOutAndRedirectToSignIn}>{props.translate('bankAccount.validateAccountError.phrase2')}</TextLink>
.
</Text>
</View>
)}
<View style={[styles.mv0, styles.mh5, styles.flexRow, styles.justifyContentBetween]}>
Expand Down

0 comments on commit dfda5ad

Please sign in to comment.