Fix TypeScript typecheck errors
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-30 15:56:06 +01:00
parent 916b204688
commit b1f9f7cee0
42 changed files with 324 additions and 72 deletions

View File

@@ -17,7 +17,7 @@ import { MobileSelect } from './FormControls';
type UserMenuSheetProps = {
open: boolean;
onClose: () => void;
user?: { name?: string | null; email?: string | null; avatar_url?: string | null };
user?: { name?: string | null; email?: string | null; avatar_url?: string | null } | null;
isMember: boolean;
navigate: (path: string) => void;
};
@@ -245,7 +245,7 @@ export function UserMenuSheet({ open, onClose, user, isMember, navigate }: UserM
<Switch
size="$2"
checked={isDark}
onCheckedChange={(next) => updateAppearance(next ? 'dark' : 'light')}
onCheckedChange={(next: boolean) => updateAppearance(next ? 'dark' : 'light')}
aria-label={t('mobileProfile.theme', 'Dark Mode')}
>
<Switch.Thumb />