From 049ebdf476ed1a4818cd16779758ff73431761b4 Mon Sep 17 00:00:00 2001 From: Getabalew Tesfaye Date: Tue, 11 Apr 2023 08:36:51 -0700 Subject: [PATCH] update format usage to zipCodeExampleFormat --- src/pages/ReimbursementAccount/AddressForm.js | 2 +- src/pages/settings/Payments/AddDebitCardPage.js | 2 +- src/pages/settings/Profile/PersonalDetails/AddressPage.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/ReimbursementAccount/AddressForm.js b/src/pages/ReimbursementAccount/AddressForm.js index f912f74c1ee3..51534bef8747 100644 --- a/src/pages/ReimbursementAccount/AddressForm.js +++ b/src/pages/ReimbursementAccount/AddressForm.js @@ -139,7 +139,7 @@ const AddressForm = props => ( onChangeText={value => props.onFieldChange({zipCode: value})} errorText={props.errors.zipCode ? props.translate('bankAccount.error.zipCode') : ''} maxLength={CONST.BANK_ACCOUNT.MAX_LENGTH.ZIP_CODE} - hint={props.translate('common.format', {zipSampleFormat: CONST.COUNTRY_ZIP_REGEX_DATA.US.samples})} + hint={props.translate('common.zipCodeExampleFormat', {zipSampleFormat: CONST.COUNTRY_ZIP_REGEX_DATA.US.samples})} /> ); diff --git a/src/pages/settings/Payments/AddDebitCardPage.js b/src/pages/settings/Payments/AddDebitCardPage.js index 0ad4a8b1a112..bc4c7f0f945f 100644 --- a/src/pages/settings/Payments/AddDebitCardPage.js +++ b/src/pages/settings/Payments/AddDebitCardPage.js @@ -170,7 +170,7 @@ class DebitCardPage extends Component { label={this.props.translate('common.zip')} keyboardType={CONST.KEYBOARD_TYPE.NUMBER_PAD} maxLength={CONST.BANK_ACCOUNT.MAX_LENGTH.ZIP_CODE} - hint={this.props.translate('common.format', {zipSampleFormat: CONST.COUNTRY_ZIP_REGEX_DATA.US.samples})} + hint={this.props.translate('common.zipCodeExampleFormat', {zipSampleFormat: CONST.COUNTRY_ZIP_REGEX_DATA.US.samples})} containerStyles={[styles.mt4]} /> diff --git a/src/pages/settings/Profile/PersonalDetails/AddressPage.js b/src/pages/settings/Profile/PersonalDetails/AddressPage.js index 463fc8178068..cbbad1b7cac3 100644 --- a/src/pages/settings/Profile/PersonalDetails/AddressPage.js +++ b/src/pages/settings/Profile/PersonalDetails/AddressPage.js @@ -66,7 +66,7 @@ class AddressPage extends Component { const zipSampleFormat = lodashGet(CONST.COUNTRY_ZIP_REGEX_DATA, [targetCountryISO, 'samples'], ''); this.state = { isUsaForm: (currentCountry === CONST.COUNTRY.US || currentCountry === CONST.USA_COUNTRY_NAME), - zipFormat: this.props.translate('common.format', {zipSampleFormat}), + zipFormat: this.props.translate('common.zipCodeExampleFormat', {zipSampleFormat}), }; } @@ -77,7 +77,7 @@ class AddressPage extends Component { const zipSampleFormat = lodashGet(CONST.COUNTRY_ZIP_REGEX_DATA, `${newCountry}.samples`, ''); this.setState({ isUsaForm: newCountry === CONST.COUNTRY.US, - zipFormat: this.props.translate('common.format', {zipSampleFormat}), + zipFormat: this.props.translate('common.zipCodeExampleFormat', {zipSampleFormat}), }); }