diff --git a/components/form/IntlFields.tsx b/components/form/IntlFields.tsx index 4c0bcd9..87663c9 100644 --- a/components/form/IntlFields.tsx +++ b/components/form/IntlFields.tsx @@ -1,4 +1,4 @@ -import { Input, Select } from 'ooni-components' +import { Input, Textarea, Select } from 'ooni-components' import { Controller, useFieldArray, useFormContext } from 'react-hook-form' import { FaRegTrashCan } from 'react-icons/fa6' import { useIntl } from 'react-intl' @@ -12,7 +12,7 @@ const langOptions = supportedLanguages.map((lang) => ({ ), })) -const IntlFields = ({ name }: FieldsPropTypes) => { +const IntlFields = ({ name, inputType = 'text' }: FieldsPropTypes & { inputType?: 'text' | 'textarea' }) => { const intl = useIntl() const { control } = useFormContext() const { fields, append, remove } = useFieldArray({ @@ -63,20 +63,23 @@ const IntlFields = ({ name }: FieldsPropTypes) => {