Reorder buttons in QuizRunner component

This commit is contained in:
2026-01-08 01:14:48 +01:00
parent 8a4b3a4cf3
commit 877f772f57

View File

@@ -434,14 +434,14 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt
)}
{showResult && (
<>
<button className="button button--primary" onClick={goNext}>
{currentIndex + 1 === questions.length ? 'Finish' : 'Next'}
</button>
{lastCorrect && !showExplanation && (
<button className="button button--ghost" onClick={() => setShowExplanation(true)}>
Show explanation
</button>
)}
<button className="button button--primary" onClick={goNext}>
{currentIndex + 1 === questions.length ? 'Finish' : 'Next'}
</button>
</>
)}
</div>