Add back button to QuizRunner component
This commit is contained in:
@@ -487,6 +487,9 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt
|
|||||||
)}
|
)}
|
||||||
{showResult && (
|
{showResult && (
|
||||||
<>
|
<>
|
||||||
|
<button className="button button--ghost" onClick={goPrev} disabled={currentIndex === 0}>
|
||||||
|
Back
|
||||||
|
</button>
|
||||||
<button className="button button--primary" onClick={goNext}>
|
<button className="button button--primary" onClick={goNext}>
|
||||||
{currentIndex + 1 === questions.length ? 'Finish' : 'Next'}
|
{currentIndex + 1 === questions.length ? 'Finish' : 'Next'}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user