Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Mar 3, 2023
1 parent 7c98b01 commit acb43fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/components/InteractiveForm/RenderSurvey.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -37,17 +37,17 @@ const RenderSurvey = ({
return isFacultySelected && isAnyDimensionsSelected
}

const submitFormData = (data: any) => {
const submitFormData = (event: BaseSyntheticEvent) => {
setDisableForm(true)
handleSubmit(data)
handleSubmit(event)
}

return (
<Box sx={{ mx: 2, maxWidth: 1080, border: 1, borderColor: 'grey.300' }}>
<SelectFaculty control={control} />
<Box sx={classes.card} justifyContent="center">
{questions.map((question) => (
<div key={question.id as unknown as string}>
<div key={question.id}>
{question.parentId === null && question.priority === 0 && (
<RenderQuestions
control={control}
Expand Down

0 comments on commit acb43fc

Please sign in to comment.