Align admin theme with Tamagui v2

This commit is contained in:
Codex Agent
2026-02-03 22:40:16 +01:00
parent c59f9ae994
commit 6c12d73d68
7 changed files with 121 additions and 48 deletions

View File

@@ -20,3 +20,19 @@ vi.mock('react-i18next', async () => {
Trans: ({ children }: { children: React.ReactNode }) => children,
};
});
if (typeof window !== 'undefined' && !window.matchMedia) {
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: (query: string) => ({
matches: false,
media: query,
onchange: null,
addListener: vi.fn(),
removeListener: vi.fn(),
addEventListener: vi.fn(),
removeEventListener: vi.fn(),
dispatchEvent: vi.fn(),
}),
});
}