Skip to content

Commit

Permalink
[FIX] Adding missing custom fields translation in my account's profile (
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Fabris authored Oct 9, 2020
1 parent ce1f4a1 commit 0351814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/components/CustomFieldsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 0351814

Please sign in to comment.