diff --git a/components/input.tsx b/components/input.tsx index ebc4818..d8baaab 100644 --- a/components/input.tsx +++ b/components/input.tsx @@ -7,11 +7,18 @@ interface InputProps extends React.InputHTMLAttributes { } export default function Input(props: InputProps) { - const { label, required, type = 'text', ...rest } = props + const { label, name, required, type = 'text', ...rest } = props return ( - - + + ) } diff --git a/components/inputWrapper.tsx b/components/inputWrapper.tsx index d744098..32a536d 100644 --- a/components/inputWrapper.tsx +++ b/components/inputWrapper.tsx @@ -3,16 +3,17 @@ import Required from './required' export default function Input(props: { label: string + name: string required: boolean children: React.ReactNode }) { - const { label, required, children } = props + const { label, name, required, children } = props return ( <>
-