Skip to content

Commit

Permalink
Change State field in Company Info to 'Incorporation state'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonals committed Oct 11, 2021
1 parent 79eafd4 commit f2e5641
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/StatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const STATES = _.map(CONST.STATES, ({stateISO}) => ({
}));

const propTypes = {
/** The label for the field */
label: PropTypes.string,

/** A callback method that is called when the value changes and it received the selected value as an argument */
onChange: PropTypes.func.isRequired,

Expand All @@ -21,6 +24,7 @@ const propTypes = {
};

const defaultProps = {
label: '',
value: '',
};

Expand All @@ -30,7 +34,7 @@ const StatePicker = props => (
items={STATES}
onChange={props.onChange}
value={props.value}
label={props.translate('common.state')}
label={props.label || props.translate('common.state')}
hasError={props.hasError}
errorText={props.errorText}
/>
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ export default {
taxIDNumberPlaceholder: '9 digits, no hyphens',
companyType: 'Company type',
incorporationDate: 'Incorporation date',
incorporationState: 'Incorporation state',
industryClassificationCode: 'Industry classification code',
confirmCompanyIsNot: 'I confirm that this company is not on the',
listOfRestrictedBusinesses: 'list of restricted businesses',
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ export default {
taxIDNumberPlaceholder: '9 dígitos, sin guiones',
companyType: 'Tipo de empresa',
incorporationDate: 'Fecha de incorporación',
incorporationState: 'Estado de incorporación',
industryClassificationCode: 'Código de clasificación industrial',
confirmCompanyIsNot: 'Confirmo que esta empresa no está en el',
listOfRestrictedBusinesses: 'lista de negocios restringidos',
Expand Down
3 changes: 2 additions & 1 deletion src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class CompanyStep extends React.Component {
/>
</View>
<View style={[styles.flexRow, styles.mt4]}>
<View style={[styles.flex2, styles.mr2]}>
<View style={[styles.flex1, styles.mr2]}>
<DatePicker
label={this.props.translate('companyStep.incorporationDate')}
onChange={value => this.clearErrorAndSetValue('incorporationDate', value)}
Expand All @@ -238,6 +238,7 @@ class CompanyStep extends React.Component {
</View>
<View style={[styles.flex1]}>
<StatePicker
label={this.props.translate('companyStep.incorporationState')}
onChange={value => this.clearErrorAndSetValue('incorporationState', value)}
value={this.state.incorporationState}
hasError={this.getErrors().incorporationState}
Expand Down

0 comments on commit f2e5641

Please sign in to comment.