fix(use-theme): forgot to default to light theme, not dark

This commit is contained in:
plebeius.eth
2023-10-13 13:09:25 +02:00
parent d2a33ae775
commit 3140f829bd

View File

@@ -6,7 +6,7 @@ interface ThemeState {
}
const useThemeStore = create<ThemeState>((set: StoreApi<ThemeState>['setState']) => ({
theme: localStorage.getItem('theme') || 'dark',
theme: localStorage.getItem('theme') || 'light',
setTheme: (theme: string) => {
localStorage.setItem('theme', theme);
set({ theme });