feat: Add Retake Full Quiz option to quiz results screen
All checks were successful
Automated Container Build / build-and-push (push) Successful in 59s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 59s
This commit is contained in:
parent
a65e371449
commit
0295101e10
1 changed files with 10 additions and 0 deletions
|
|
@ -89,6 +89,16 @@ export function QuizResults({ quiz, attempt, onRetake, onClose }: QuizResultsPro
|
||||||
Retake Missed ({missedIds.length})
|
Retake Missed ({missedIds.length})
|
||||||
</button>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue