From 3d9d6ec6416c1fa6ac7e57a2937605e2a45fc21d Mon Sep 17 00:00:00 2001 From: QC2168 Date: Mon, 26 Jun 2023 14:05:53 +0800 Subject: [PATCH] fix(theme): unable to access preset theme value --- state/themeState.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/state/themeState.ts b/state/themeState.ts index d0ce2e0..c23a8c0 100644 --- a/state/themeState.ts +++ b/state/themeState.ts @@ -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', });