fix(theme): unable to access preset theme value
This commit is contained in:
parent
ea2dcb75b0
commit
3d9d6ec641
|
@ -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',
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue