diff --git a/src/_schemas/formSchema.ts b/src/_schemas/formSchema.ts index 4735a12c..3b1dcdaa 100644 --- a/src/_schemas/formSchema.ts +++ b/src/_schemas/formSchema.ts @@ -65,10 +65,6 @@ export const createFormResponseSchema = z.object({ id: z.number(), }); -export const batchAnswersSchema = z.array(batchAnswerSchema); - -export type BatchAnswersSchema = z.infer; - export type BatchAnswer = z.infer; export type MinimumForm = z.infer; @@ -76,5 +72,3 @@ export type MinimumForm = z.infer; export type Form = z.infer; export type FormQuestion = z.infer; - -export type Visibility = z.infer; diff --git a/src/app/(authed)/admin/forms/create/_components/FormCreateForm.tsx b/src/app/(authed)/admin/forms/create/_components/FormCreateForm.tsx index 1bfd62e2..06463ff4 100644 --- a/src/app/(authed)/admin/forms/create/_components/FormCreateForm.tsx +++ b/src/app/(authed)/admin/forms/create/_components/FormCreateForm.tsx @@ -10,12 +10,12 @@ import { Grid, Stack, } from '@mui/material'; +import { useState } from 'react'; import { useFieldArray, useForm, useWatch } from 'react-hook-form'; import FormSettings from './FormSettings'; import QuestionComponent from './Question'; import { formSchema } from '../_schema/createFormSchema'; import type { Form } from '../_schema/createFormSchema'; -import { useState } from 'react'; const FormCreateForm = () => { const {