Skip to content

Commit

Permalink
update format usage to zipCodeExampleFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
getusha committed Apr 11, 2023
1 parent 151fc05 commit 049ebdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/AddressForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})}
/>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Payments/AddDebitCardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
/>
<View style={styles.mt4}>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/settings/Profile/PersonalDetails/AddressPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}),
};
}

Expand All @@ -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}),
});
}

Expand Down

0 comments on commit 049ebdf

Please sign in to comment.