diff --git a/src/app/components/form/CheckboxField.tsx b/src/app/components/form/CheckboxField.tsx index a2a232c..1c3840d 100644 --- a/src/app/components/form/CheckboxField.tsx +++ b/src/app/components/form/CheckboxField.tsx @@ -1,17 +1,17 @@ import { FieldValues, UseFormRegister } from "react-hook-form"; import { CheckboxOptions } from "../../types"; -export const CheckboxField = ({ id, name, registerField, options }: Props) => { - return ( -
+export const CheckboxField = ({ name, registerField, options }: Props) => ( +
+
{options.map((option: CheckboxOptions) => ( -
+
))}
- ); -}; +
+); type Props = { id: string; diff --git a/src/app/components/form/DropdownField.tsx b/src/app/components/form/DropdownField.tsx index bfc55c6..132249e 100644 --- a/src/app/components/form/DropdownField.tsx +++ b/src/app/components/form/DropdownField.tsx @@ -24,10 +24,10 @@ export const DropdownField = ({