diff --git a/src/app/[locale]/incident/add/components/IncidentQuestionsLocationForm.tsx b/src/app/[locale]/incident/add/components/IncidentQuestionsLocationForm.tsx index 8fa60b9..b16c2cf 100644 --- a/src/app/[locale]/incident/add/components/IncidentQuestionsLocationForm.tsx +++ b/src/app/[locale]/incident/add/components/IncidentQuestionsLocationForm.tsx @@ -9,6 +9,7 @@ import { useStepperStore } from '@/store/stepper_store' import { useRouter } from '@/routing/navigation' import { PublicQuestion } from '@/types/form' import { RenderDynamicFields } from '@/app/[locale]/incident/add/components/questions/RenderDynamicFields' +import { Paragraph } from '@/components/index' export const IncidentQuestionsLocationForm = () => { const { formState: formStoreState, updateForm } = useFormStore() @@ -110,9 +111,9 @@ export const IncidentQuestionsLocationForm = () => { /> ) : loading ? ( /* TODO: Implement nice loading state */ -

Laden...

+ Laden... ) : ( -

TODO: Laat hier een LocationSelect zien

+ TODO: Laat hier een LocationSelect zien )} diff --git a/src/app/[locale]/incident/add/components/questions/AssetSelect.tsx b/src/app/[locale]/incident/add/components/questions/AssetSelect.tsx index fa2f061..ece5b9d 100644 --- a/src/app/[locale]/incident/add/components/questions/AssetSelect.tsx +++ b/src/app/[locale]/incident/add/components/questions/AssetSelect.tsx @@ -1,7 +1,8 @@ import { QuestionField } from '@/types/form' +import { Paragraph } from '@/components/index' interface AssetSelectProps extends Omit {} export const AssetSelect = ({ field }: AssetSelectProps) => { - return

{field.key}

+ return {field.key} } diff --git a/src/app/[locale]/incident/add/components/questions/CheckboxInput.tsx b/src/app/[locale]/incident/add/components/questions/CheckboxInput.tsx index 4739d48..6ddf006 100644 --- a/src/app/[locale]/incident/add/components/questions/CheckboxInput.tsx +++ b/src/app/[locale]/incident/add/components/questions/CheckboxInput.tsx @@ -3,6 +3,7 @@ import { useTranslations } from 'next-intl' import { useFormStore } from '@/store/form_store' import { getValidators } from '@/lib/utils/form-validator' import React from 'react' +import { Paragraph } from '@/components/index' interface CheckboxInputProps extends QuestionField {} @@ -46,13 +47,13 @@ export const CheckboxInput = ({ {field.meta.subtitle && {field.meta.subtitle}} {errorMessage && ( -

{errorMessage} -

+ )} {Object.keys(field.meta.values).map((key: string) => (
diff --git a/src/app/[locale]/incident/add/components/questions/RadioInput.tsx b/src/app/[locale]/incident/add/components/questions/RadioInput.tsx index 1227602..b09a6c9 100644 --- a/src/app/[locale]/incident/add/components/questions/RadioInput.tsx +++ b/src/app/[locale]/incident/add/components/questions/RadioInput.tsx @@ -3,6 +3,7 @@ import { useTranslations } from 'next-intl' import { useFormStore } from '@/store/form_store' import { QuestionField } from '@/types/form' import { getValidators } from '@/lib/utils/form-validator' +import { Paragraph } from '@/components/index' interface RadioGroupProps extends QuestionField {} @@ -40,13 +41,13 @@ export const RadioInput = ({ field, register, errors }: RadioGroupProps) => { {errorMessage && ( -

{errorMessage} -

+ )} {Object.keys(field.meta.values).map((key: string) => ( diff --git a/src/app/[locale]/incident/add/components/questions/TextAreaInput.tsx b/src/app/[locale]/incident/add/components/questions/TextAreaInput.tsx index 05c30cb..e153d79 100644 --- a/src/app/[locale]/incident/add/components/questions/TextAreaInput.tsx +++ b/src/app/[locale]/incident/add/components/questions/TextAreaInput.tsx @@ -3,6 +3,7 @@ import { useTranslations } from 'next-intl' import { useFormStore } from '@/store/form_store' import { getValidators } from '@/lib/utils/form-validator' import React from 'react' +import { Paragraph } from '@/components/index' interface TextAreaInputProps extends QuestionField {} @@ -37,13 +38,13 @@ export const TextAreaInput = ({ return (
{errorMessage && ( -

{errorMessage} -

+ )}