initial setup, formik, fields, layout
This commit is contained in:
parent
765cc0c7cf
commit
b23d706180
16 changed files with 578 additions and 53 deletions
10
components/Form/ErrorMessage.tsx
Normal file
10
components/Form/ErrorMessage.tsx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import React from "react"
|
||||
|
||||
const ErrorMessage = ({ touched, error }: { touched: boolean; error?: string }) => {
|
||||
if (touched && error) {
|
||||
return <p className="mt-1">{error}</p>
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
export default ErrorMessage
|
||||
Loading…
Add table
Add a link
Reference in a new issue