We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a548ffb commit 6e145d9Copy full SHA for 6e145d9
resources/js/hooks/use-appearance.tsx
@@ -36,7 +36,7 @@ export function useAppearance() {
36
};
37
38
useEffect(() => {
39
- const savedAppearance = localStorage.getItem('appearance') as Appearance;
+ const savedAppearance = localStorage.getItem('appearance') as Appearance | null;
40
updateAppearance(savedAppearance || 'system');
41
42
return () => mediaQuery.removeEventListener('change', handleSystemThemeChange);
0 commit comments