forked from cartsnitch/app
fix: address critical and major PR review issues
- Lazy-load Recharts via SparklineChart component with React.lazy + Suspense - Gate mock auth fallback behind VITE_MOCK_AUTH env var in Login and Register - Add ProtectedRoute component to guard authenticated routes - Fix touch target size on New Alert button (min-h-10 -> min-h-12) - Replace invalid safe-area-pb class with pb-[env(safe-area-inset-bottom)] - Fix theme toggle button touch targets (min-h-10 -> min-h-12) Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -85,7 +85,7 @@ export function Settings() {
|
||||
<button
|
||||
key={t}
|
||||
onClick={() => setTheme(t)}
|
||||
className={`min-h-10 flex-1 rounded-lg px-3 py-2 text-sm font-medium capitalize ${
|
||||
className={`min-h-12 flex-1 rounded-lg px-3 py-2 text-sm font-medium capitalize ${
|
||||
theme === t
|
||||
? 'bg-brand-blue text-white'
|
||||
: 'bg-gray-100 text-gray-700 active:bg-gray-200'
|
||||
|
||||
Reference in New Issue
Block a user