refactor(#217): changed input orders (#44)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Mirlan 5 years ago committed by GitHub
parent 7b2d664862
commit 4053387aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 34
      src/features/Register/components/RegistrationStep/index.tsx

@ -52,15 +52,6 @@ const Registration = () => {
labelWidth={labelWidth}
onChange={updateFormValue(formIds.lastname)}
/>
<Input
id={formIds.phone}
value={readFormValue(formIds.phone)}
error={readFormError(formIds.phone)}
type='tel'
labelLexic='form_phone'
labelWidth={labelWidth}
onChange={updateFormValue(formIds.phone)}
/>
<Input
id={formIds.email}
value={readFormValue(formIds.email)}
@ -92,6 +83,14 @@ const Registration = () => {
onChange={updateFormValue(formIds.country)}
onSelect={onCountrySelect}
/>
<Input
id={formIds.region}
value={readFormValue(formIds.region)}
error={readFormError(formIds.region)}
labelLexic='form_region'
labelWidth={labelWidth}
onChange={onRegionOrCityChange(formIds.region)}
/>
<Combobox
id={formIds.city}
value={readFormValue(formIds.city)}
@ -110,14 +109,6 @@ const Registration = () => {
labelWidth={labelWidth}
onChange={updateFormValue(formIds.postalCode)}
/>
<Input
id={formIds.region}
value={readFormValue(formIds.region)}
error={readFormError(formIds.region)}
labelLexic='form_region'
labelWidth={labelWidth}
onChange={onRegionOrCityChange(formIds.region)}
/>
<Input
id={formIds.address1}
value={readFormValue(formIds.address1)}
@ -134,6 +125,15 @@ const Registration = () => {
labelWidth={labelWidth}
onChange={updateFormValue(formIds.address2)}
/>
<Input
id={formIds.phone}
value={readFormValue(formIds.phone)}
error={readFormError(formIds.phone)}
type='tel'
labelLexic='form_phone'
labelWidth={labelWidth}
onChange={updateFormValue(formIds.phone)}
/>
<ButtonsBlock>
<ButtonSolid type='submit'>

Loading…
Cancel
Save