From acb43fc5548864ee07874ebeded847c1a985aad0 Mon Sep 17 00:00:00 2001 From: Henri Remonen Date: Fri, 3 Mar 2023 14:21:27 +0200 Subject: [PATCH] Typing --- src/client/components/InteractiveForm/RenderSurvey.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/components/InteractiveForm/RenderSurvey.tsx b/src/client/components/InteractiveForm/RenderSurvey.tsx index d7d97941..e0b27ace 100644 --- a/src/client/components/InteractiveForm/RenderSurvey.tsx +++ b/src/client/components/InteractiveForm/RenderSurvey.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import React, { BaseSyntheticEvent, useState } from 'react' import { Box, Button } from '@mui/material' import { useTranslation } from 'react-i18next' import { InputProps } from '../../types' @@ -37,9 +37,9 @@ const RenderSurvey = ({ return isFacultySelected && isAnyDimensionsSelected } - const submitFormData = (data: any) => { + const submitFormData = (event: BaseSyntheticEvent) => { setDisableForm(true) - handleSubmit(data) + handleSubmit(event) } return ( @@ -47,7 +47,7 @@ const RenderSurvey = ({ {questions.map((question) => ( -
+
{question.parentId === null && question.priority === 0 && (