Skip to content

Commit

Permalink
Remove useRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed Jul 29, 2024
1 parent 6f93a26 commit 870ef74
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/components/quiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from '../../repo/question_set'
import LoadingSpinner from './loading'
import Error from 'next/error'
import { useRouter } from 'next/navigation'

export class MultipleChoiceQuizUIService {
static create({ questionSetId }: { questionSetId: string }) {
Expand Down Expand Up @@ -69,7 +68,6 @@ function MultipleChoiceQuiz({
fetchQuestionSet: () => QuestionSet
onSubmit: (questionSet: QuestionSet) => void
}) {
const router = useRouter()
const [isLoading, setLoading] = useState(true)
const [isNotFound, setNotFound] = useState(false)

Expand Down

0 comments on commit 870ef74

Please sign in to comment.