Use ErrorMessage component
This commit is contained in:
parent
66bf957460
commit
09de41c0a2
3 changed files with 18 additions and 16 deletions
8
client/src/js/components/ui/formik/Error.js
Normal file
8
client/src/js/components/ui/formik/Error.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import React from 'react';
|
||||
import { ErrorMessage } from 'formik';
|
||||
|
||||
const Error = props => (
|
||||
<ErrorMessage component="div" className="form-error" {...props} />
|
||||
);
|
||||
|
||||
export default Error;
|
Loading…
Add table
Add a link
Reference in a new issue