Refine admin PWA dark theme controls
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-02-04 13:50:59 +01:00
parent 239f55f9c5
commit 66c7131d79
22 changed files with 999 additions and 110 deletions

View File

@@ -17,8 +17,6 @@ vi.mock('@tamagui/react-native-web-lite', () => ({
vi.mock('tamagui', () => {
const Stack = ({ children, ...props }: { children: React.ReactNode }) => <div {...props}>{children}</div>;
const Text = ({ children, ...props }: { children: React.ReactNode }) => <span {...props}>{children}</span>;
const Switch = ({ children }: { children?: React.ReactNode }) => <div>{children}</div>;
Switch.Thumb = () => <div />;
const ListItem = ({ title, iconAfter, ...props }: { title?: React.ReactNode; iconAfter?: React.ReactNode }) => (
<div {...props}>
@@ -36,11 +34,16 @@ vi.mock('tamagui', () => {
SizableText: Text,
ListItem,
YGroup,
Switch,
Separator: ({ children }: { children?: React.ReactNode }) => <div>{children}</div>,
};
});
vi.mock('@tamagui/toggle-group', () => ({
ToggleGroup: Object.assign(({ children }: { children: React.ReactNode }) => <div>{children}</div>, {
Item: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
}),
}));
vi.mock('../FormControls', () => ({
MobileSelect: ({ children }: { children: React.ReactNode }) => <select>{children}</select>,
}));
@@ -66,6 +69,7 @@ vi.mock('../../theme', () => ({
glassShadow: 'rgba(15,23,42,0.14)',
shadow: 'rgba(0,0,0,0.12)',
}),
withAlpha: (value: string) => value,
}));
import { UserMenuSheet } from '../UserMenuSheet';