Skip to content

Commit fece1dc

Browse files
committed
feat: add "Back to questions" button and update reset functionality in InstructionsWizard
1 parent a375057 commit fece1dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/instructions-wizard.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,9 @@ export function InstructionsWizard({ onClose }: InstructionsWizardProps) {
636636
</div>
637637

638638
<div className="flex flex-wrap gap-2">
639+
<Button variant="outline" onClick={goToPrevious}>
640+
Back to questions
641+
</Button>
639642
<Button variant="ghost" onClick={requestResetWizard}>
640643
Start Over
641644
</Button>
@@ -654,7 +657,7 @@ export function InstructionsWizard({ onClose }: InstructionsWizardProps) {
654657
return (
655658
<div className="mx-auto flex w-full max-w-4xl flex-col gap-6">
656659
{onClose ? (
657-
<Button variant="ghost" onClick={onClose} className="self-start -ml-2">
660+
<Button variant="ghost" onClick={requestResetWizard} className="self-start -ml-2">
658661
<ArrowLeft className="mr-2 h-4 w-4" />
659662
Start over
660663
</Button>
@@ -741,7 +744,7 @@ export function InstructionsWizard({ onClose }: InstructionsWizardProps) {
741744
Back
742745
</Button>
743746
<div className="text-xs text-muted-foreground">
744-
Question {questionNumber} of {totalQuestions} · {answeredQuestionsCount} answered
747+
Question {questionNumber} of {totalQuestions}
745748
</div>
746749
</div>
747750
</section>

0 commit comments

Comments
 (0)