You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try to replace translation T('label') if not missing with real messageID and T('messageID') with a particular translation framework (react-intl and potentially react-i18n)
try to replace translation T('placeholder') if not missing with real messageID and T('messageID') with a particular translation framework (react-intl and potentially react-i18n)
inline all prop value occurences with for example value={formik.values.email} (in case of using formik)
inline all prop handleChange with for example onChange={formik.handleChange} (in case of using formik)
inline all prop errorwith for example error={formik.touched.email && Boolean(formik.errors.email)} and in this case also helperText={formik.touched.email && formik.errors.email}
Goal:
Templates
Read info/background from #138.
Let's have multiple templates and preserve existing logic using them:
Refactoring rules:
T('label')
if not missing with real messageID andT('messageID')
with a particular translation framework (react-intl and potentially react-i18n)T('placeholder')
if not missing with real messageID andT('messageID')
with a particular translation framework (react-intl and potentially react-i18n)value
occurences with for examplevalue={formik.values.email}
(in case of using formik)handleChange
with for exampleonChange={formik.handleChange}
(in case of using formik)error
with for exampleerror={formik.touched.email && Boolean(formik.errors.email)}
and in this case alsohelperText={formik.touched.email && formik.errors.email}
https://codesandbox.io/s/github/formik/formik/tree/master/examples/with-material-ui?from-embed
Next steps will be:
The text was updated successfully, but these errors were encountered: