diff --git a/src/stores/style.store.ts b/src/stores/style.store.ts index c11fde2d..6026d8b1 100644 --- a/src/stores/style.store.ts +++ b/src/stores/style.store.ts @@ -1,13 +1,9 @@ -import { useStorage, usePreferredDark } from '@vueuse/core'; +import { useStorage } from '@vueuse/core'; import { defineStore } from 'pinia'; import type { Ref } from 'vue'; export const useStyleStore = defineStore('style', { - state: () => { - const isDark = usePreferredDark(); - - return { - isDarkTheme: useStorage('useDarkTheme', isDark) as Ref, - }; - }, + state: () => ({ + isDarkTheme: useStorage('useDarkTheme', false) as Ref, + }), });