Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix(onboarding): match the back button to continue and lead the action row

Luis Ortiz8ba8ff5ef81b
diff --git a/src/ui/onboarding/App.tsx b/src/ui/onboarding/App.tsx
index 5bc9f95..9f6dff3 100644
--- a/src/ui/onboarding/App.tsx
+++ b/src/ui/onboarding/App.tsx
@@ -1,4 +1,4 @@
-import { ArrowLeft, Mic, MousePointerClick, Shield, TriangleAlert } from 'lucide-react';
+import { Mic, MousePointerClick, Shield, TriangleAlert } from 'lucide-react';
import { useEffect, useState } from 'react';
import { browser, i18n } from '#imports';
import { PRESET_LABELS, type PresetKey } from '@/core/blur/regexes';
@@ -220,6 +220,12 @@ function AISetupStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</div>
<div className="flex items-center gap-3">
+ <button
+ onClick={onBack}
+ className="px-8 py-3 bg-card text-foreground border border-border rounded-xl font-semibold text-sm hover:border-accent hover:text-accent transition-colors"
+ >
+ {i18n.t('common.back')}
+ </button>
<button
onClick={handleContinue}
className="px-8 py-3 bg-accent text-white rounded-xl font-semibold text-sm hover:bg-accent/90 transition-colors"
@@ -228,17 +234,10 @@ function AISetupStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</button>
<button
onClick={onSkip}
- className="px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
+ className="ml-2 px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
>
{i18n.t('common.skip')}
</button>
- <button
- onClick={onBack}
- className="inline-flex items-center gap-1.5 px-4 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
- >
- <ArrowLeft size={15} />
- {i18n.t('common.back')}
- </button>
</div>
<div className="mt-6">
@@ -418,6 +417,12 @@ function VoiceStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</div>
<div className="flex items-center gap-3">
+ <button
+ onClick={onBack}
+ className="px-8 py-3 bg-card text-foreground border border-border rounded-xl font-semibold text-sm hover:border-accent hover:text-accent transition-colors"
+ >
+ {i18n.t('common.back')}
+ </button>
<button
onClick={handleContinue}
className="px-8 py-3 bg-accent text-white rounded-xl font-semibold text-sm hover:bg-accent/90 transition-colors"
@@ -426,17 +431,10 @@ function VoiceStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</button>
<button
onClick={onSkip}
- className="px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
+ className="ml-2 px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
>
{i18n.t('common.skip')}
</button>
- <button
- onClick={onBack}
- className="inline-flex items-center gap-1.5 px-4 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
- >
- <ArrowLeft size={15} />
- {i18n.t('common.back')}
- </button>
</div>
<div className="mt-6">
@@ -563,6 +561,12 @@ function SmartBlurStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</div>
<div className="flex items-center gap-3">
+ <button
+ onClick={onBack}
+ className="px-8 py-3 bg-card text-foreground border border-border rounded-xl font-semibold text-sm hover:border-accent hover:text-accent transition-colors"
+ >
+ {i18n.t('common.back')}
+ </button>
<button
onClick={onNext}
className="px-8 py-3 bg-accent text-white rounded-xl font-semibold text-sm hover:bg-accent/90 transition-colors"
@@ -571,17 +575,10 @@ function SmartBlurStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</button>
<button
onClick={onSkip}
- className="px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
+ className="ml-2 px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
>
{i18n.t('common.skip')}
</button>
- <button
- onClick={onBack}
- className="inline-flex items-center gap-1.5 px-4 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
- >
- <ArrowLeft size={15} />
- {i18n.t('common.back')}
- </button>
</div>
<div className="mt-6">
@@ -691,6 +688,12 @@ function PinExtensionStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</ol>
<div className="flex items-center gap-3">
+ <button
+ onClick={onBack}
+ className="px-8 py-3 bg-card text-foreground border border-border rounded-xl font-semibold text-sm hover:border-accent hover:text-accent transition-colors"
+ >
+ {i18n.t('common.back')}
+ </button>
<button
onClick={onNext}
className="px-8 py-3 bg-accent text-white rounded-xl font-semibold text-sm hover:bg-accent/90 transition-colors"
@@ -699,17 +702,10 @@ function PinExtensionStep({ onNext, onSkip, onBack, index, total }: StepProps) {
</button>
<button
onClick={onSkip}
- className="px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
+ className="ml-2 px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
>
{i18n.t('common.skip')}
</button>
- <button
- onClick={onBack}
- className="inline-flex items-center gap-1.5 px-4 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"
- >
- <ArrowLeft size={15} />
- {i18n.t('common.back')}
- </button>
</div>
<div className="mt-6">