mirror of
https://github.com/plebbit/seedit.git
synced 2026-05-19 06:04:56 -04:00
fix(use-theme): forgot to default to light theme, not dark
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user