diff --git a/src/components/CBT/ExamResult.tsx b/src/components/CBT/ExamResult.tsx index 239463c..e2eecd5 100644 --- a/src/components/CBT/ExamResult.tsx +++ b/src/components/CBT/ExamResult.tsx @@ -1,8 +1,8 @@ import React from 'react'; +import { useRouter } from 'next/navigation'; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { CheckCircle2, XCircle, AlertCircle, Clock, Award, ArrowRight, RotateCcw } from "lucide-react"; -import Link from 'next/link'; interface ExamAttemptPayload { score: number; @@ -22,6 +22,7 @@ interface ExamResultProps { } export function ExamResult({ payload, onRetake }: ExamResultProps) { + const router = useRouter(); const answered = payload.answers.filter(a => a.selected_answer !== null).length; const unanswered = payload.total_questions - answered; @@ -114,15 +115,22 @@ export function ExamResult({ payload, onRetake }: ExamResultProps) { - - - + diff --git a/src/components/CBT/PeriodicTable.tsx b/src/components/CBT/PeriodicTable.tsx index 820259f..1982707 100644 --- a/src/components/CBT/PeriodicTable.tsx +++ b/src/components/CBT/PeriodicTable.tsx @@ -23,14 +23,14 @@ export function PeriodicTable({ isOpen, onClose }: PeriodicTableProps) { -