Skip to content

Commit

Permalink
refactor: 使われていないスキーマの削除
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Apr 30, 2024
1 parent d3fa268 commit f776591
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/_schemas/formSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,10 @@ export const createFormResponseSchema = z.object({
id: z.number(),
});

export const batchAnswersSchema = z.array(batchAnswerSchema);

export type BatchAnswersSchema = z.infer<typeof batchAnswersSchema>;

export type BatchAnswer = z.infer<typeof batchAnswerSchema>;

export type MinimumForm = z.infer<typeof mimimumFormSchema>;

export type Form = z.infer<typeof formSchema>;

export type FormQuestion = z.infer<typeof questionSchema>;

export type Visibility = z.infer<typeof visibility>;
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f776591

Please sign in to comment.