Skip to content

Commit

Permalink
fix(theme): unable to access preset theme value
Browse files Browse the repository at this point in the history
  • Loading branch information
QC2168 committed Jun 26, 2023
1 parent ea2dcb7 commit 3d9d6ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions state/themeState.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { atom } from 'recoil';
import { Local } from '@/utils/storage';
import { ThemeType } from '../src/lib/css/theme';

export const themeModeState = atom({
key: 'themeMode',
default: Local.get('themeMode') || ThemeType.LIGHT,
default: Local.get('themeMode') || 'light',
});

0 comments on commit 3d9d6ec

Please sign in to comment.