Skip to content

Commit 8db5dd2

Browse files
Fix imports
1 parent 4ca5b18 commit 8db5dd2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

components/QuizExamForm.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { useEffect, useState } from "react";
1+
import { useEffect, useState, type FC } from "react";
22
import Image from "next/image";
33
import { Question } from "./types";
44
import { FieldArray, FormikProvider, Field, useFormik } from "formik";
5+
import { useForm } from "react-hook-form";
56
import { Button } from "./Button";
67
import useResults from "@azure-fundamentals/hooks/useResults";
78

@@ -24,7 +25,7 @@ type Props = {
2425
images?: { url: string; alt: string }[];
2526
};
2627

27-
const QuizExamForm: React.FC<Props> = ({
28+
const QuizExamForm: FC<Props> = ({
2829
isLoading,
2930
handleNextQuestion,
3031
handleSkipQuestion,
@@ -301,7 +302,9 @@ const QuizExamForm: React.FC<Props> = ({
301302
}`}
302303
>
303304
<svg
304-
className={`border ${noOfAnswers>1?"rounded":"rounded-full"} absolute h-5 w-5 p-0.5 ${
305+
className={`border ${
306+
noOfAnswers > 1 ? "rounded" : "rounded-full"
307+
} absolute h-5 w-5 p-0.5 ${
305308
showCorrectAnswer &&
306309
formik.values.options[index]?.isAnswer
307310
? "text-emerald-500 border-emerald-600"

0 commit comments

Comments
 (0)