Skip to content

Commit

Permalink
fix: pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Feb 13, 2024
1 parent f3b2579 commit 39229d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/features/form/api/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type {
FormQuestion,
Visibility,
} from '../types/formSchema';
import type { Either} from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';

const apiServerUrl = 'http://localhost:9000';

Expand Down
8 changes: 4 additions & 4 deletions src/features/form/components/CreateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const CreateFormComponent = ({ token }: Token) => {

interface FormProps {
register: UseFormRegister<IForm>;
control: Control<IForm, any>;
control: Control<IForm, IForm>;
visibility: Visibility;
}

Expand Down Expand Up @@ -233,7 +233,7 @@ interface Question {
}

interface QuestionProps {
control: Control<IForm, any>;
control: Control<IForm, IForm>;
register: UseFormRegister<IForm>;
questionIndex: number;
removeQuestion: (index: number) => void;
Expand Down Expand Up @@ -370,7 +370,7 @@ const CreateQuestionComponent = ({ register, control }: FormProps) => {
control,
name: `questions`,
});
const answerType = (questionIndex: number) =>
const useAnswerType = (questionIndex: number) =>
useWatch({
control,
name: `questions.${questionIndex}.answerType`,
Expand Down Expand Up @@ -404,7 +404,7 @@ const CreateQuestionComponent = ({ register, control }: FormProps) => {
register={register}
questionIndex={index}
removeQuestion={remove}
answerType={answerType}
answerType={useAnswerType}
/>
))}
</>
Expand Down
6 changes: 3 additions & 3 deletions src/features/form/components/DashboardFormList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export const Forms = ({ forms }: Props) => {

export const CreateFormButton = () => {
return (
<Button variant="contained" startIcon={<Add />} href='/admin/forms/create'>
<Button variant="contained" startIcon={<Add />} href="/admin/forms/create">
NEW
</Button>
)
}
);
};

0 comments on commit 39229d8

Please sign in to comment.