Reorder buttons in QuizRunner component
This commit is contained in:
@@ -434,14 +434,14 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt
|
|||||||
)}
|
)}
|
||||||
{showResult && (
|
{showResult && (
|
||||||
<>
|
<>
|
||||||
|
<button className="button button--primary" onClick={goNext}>
|
||||||
|
{currentIndex + 1 === questions.length ? 'Finish' : 'Next'}
|
||||||
|
</button>
|
||||||
{lastCorrect && !showExplanation && (
|
{lastCorrect && !showExplanation && (
|
||||||
<button className="button button--ghost" onClick={() => setShowExplanation(true)}>
|
<button className="button button--ghost" onClick={() => setShowExplanation(true)}>
|
||||||
Show explanation
|
Show explanation
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<button className="button button--primary" onClick={goNext}>
|
|
||||||
{currentIndex + 1 === questions.length ? 'Finish' : 'Next'}
|
|
||||||
</button>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user