diff --git a/web/components/InputField/ContactInputField.js b/web/components/InputField/ContactInputField.js new file mode 100644 index 0000000..2395526 --- /dev/null +++ b/web/components/InputField/ContactInputField.js @@ -0,0 +1,52 @@ +import React from 'react'; +import { Field } from 'formik'; +import { + FormControl, + FormLabel, + FormErrorMessage, + Input, + Textarea, + IconButton, +} from '@chakra-ui/react'; +import InputPopover from './InputPopover'; +import { RiErrorWarningFill } from 'react-icons/ri'; + +function ContactInputField({ type, label, name, error, touched, tag }) { + return ( + + {({ field }) => ( + + + {label} + {error && touched ? ( + {error} } + trigger={ + + + + } + /> + ) : ( + '' + )} + + {tag === 'Input' ? ( + + ) : ( +