feat: Add Retake Full Quiz option to quiz results screen
All checks were successful
Automated Container Build / build-and-push (push) Successful in 59s

This commit is contained in:
Elijah 2026-06-27 20:43:58 -07:00
parent a65e371449
commit 0295101e10

View file

@ -89,6 +89,16 @@ export function QuizResults({ quiz, attempt, onRetake, onClose }: QuizResultsPro
Retake Missed ({missedIds.length})
</button>
)}
<button
onClick={() => {
const allIds = quiz.questions.map((q: any) => q.id).sort(() => Math.random() - 0.5);
onRetake(allIds);
}}
className="px-6 py-2.5 rounded-lg border border-primary text-primary font-medium hover:bg-primary/5 transition-all duration-200 cursor-pointer"
>
Retake Full Quiz
</button>
</div>
</div>