Fix : Customers

This commit is contained in:
elforjani3
2020-11-10 13:31:54 +02:00
parent 027c1af841
commit eef1c3c7e1
15 changed files with 393 additions and 190 deletions

View File

@@ -31,12 +31,8 @@ export default function CustomerFormAfterPrimarySection({
/>
</FormGroup>
{/*------------ Customer email -----------*/}
{/*------------ Phone number -----------*/}
<FormGroup
intent={errors.work_phone && touched.work_phone && Intent.DANGER}
helperText={
<ErrorMessage name={'work_phone'} {...{ errors, touched }} />
}
className={'form-group--phone-number'}
label={<T id={'phone_number'} />}
inline={true}
@@ -49,8 +45,8 @@ export default function CustomerFormAfterPrimarySection({
/>
<InputGroup
intent={errors.work_phone && touched.work_phone && Intent.DANGER}
{...getFieldProps('work_phone')}
intent={errors.personal_phone && touched.personal_phone && Intent.DANGER}
{...getFieldProps('personal_phone')}
placeholder={'Mobile'}
/>
</ControlGroup>