[FIX] Adding missing custom fields translation in my account's profile (#19179)

pull/19199/head^2
Douglas Fabris 5 years ago committed by GitHub
parent ce1f4a1ff3
commit 0351814ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      client/components/CustomFieldsForm.js

@ -16,7 +16,7 @@ const CustomTextInput = ({ name, required, minLength, maxLength, setState, state
}, [state, required, minLength, t]);
return useMemo(() => <Field className={className}>
<Field.Label>{name}</Field.Label>
<Field.Label>{t(name)}</Field.Label>
<Field.Row>
<TextInput name={name} error={verify} maxLength={maxLength} flexGrow={1} value={state} required={required} onChange={(e) => setState(e.currentTarget.value)}/>
</Field.Row>
@ -30,7 +30,7 @@ const CustomSelect = ({ name, required, options, setState, state, className }) =
const verify = useMemo(() => (!state.length && required ? t('Field_required') : ''), [required, state.length, t]);
return useMemo(() => <Field className={className}>
<Field.Label>{name}</Field.Label>
<Field.Label>{t(name)}</Field.Label>
<Field.Row>
<Select name={name} error={verify} flexGrow={1} value={state} options={mappedOptions} required={required} onChange={(val) => setState(val)}/>
</Field.Row>

Loading…
Cancel
Save