diff --git a/public/reddix-logo.png b/public/reddix-logo.png new file mode 100644 index 0000000..c069067 Binary files /dev/null and b/public/reddix-logo.png differ diff --git a/src/components/InputField.tsx b/src/components/InputField.tsx index 228de46..df061d8 100644 --- a/src/components/InputField.tsx +++ b/src/components/InputField.tsx @@ -1,4 +1,4 @@ -import React, { InputHTMLAttributes } from 'react' +import React, { InputHTMLAttributes, useEffect, useState } from 'react' import { useField } from 'formik' import { FormControl, @@ -25,10 +25,14 @@ export const InputField: React.FC = ({ ...props }) => { const [field, { error }] = useField(props) + // let C = Input // if (textarea) { // C = Textarea // } + useEffect(() => { + console.log('error', error) + }, [error]) return ( @@ -36,7 +40,7 @@ export const InputField: React.FC = ({ {textarea ? (