update Formik formatting to remove warnings

This commit is contained in:
Keith Grant
2020-01-16 16:46:13 -08:00
parent 14990f7e98
commit e7fead0f2c
17 changed files with 126 additions and 133 deletions
@@ -22,10 +22,8 @@ function PasswordField(props) {
};
return (
<Field
name={name}
validate={validate}
render={({ field, form }) => {
<Field name={name} validate={validate}>
{({ field, form }) => {
const isValid =
form && (!form.touched[field.name] || !form.errors[field.name]);
return (
@@ -65,7 +63,7 @@ function PasswordField(props) {
</FormGroup>
);
}}
/>
</Field>
);
}