From baa86530c89df37b94d4fc9997d1b83ae561a557 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Tue, 30 Nov 2021 20:03:27 +0000 Subject: [PATCH] fix: useColorScheme (#1117) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1117 Reviewed-by: konrad Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/composables/useColorScheme.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/composables/useColorScheme.ts b/src/composables/useColorScheme.ts index f4bf2b25..c0fed121 100644 --- a/src/composables/useColorScheme.ts +++ b/src/composables/useColorScheme.ts @@ -1,9 +1,9 @@ import {computed, watch, readonly} from 'vue' -import {useStorage, createSharedComposable, ColorSchemes, usePreferredColorScheme, tryOnMounted} from '@vueuse/core' +import {useStorage, createSharedComposable, ColorSchema, usePreferredColorScheme, tryOnMounted} from '@vueuse/core' const STORAGE_KEY = 'color-scheme' -const DEFAULT_COLOR_SCHEME_SETTING: ColorSchemes = 'light' +const DEFAULT_COLOR_SCHEME_SETTING: ColorSchema = 'light' const CLASS_DARK = 'dark' const CLASS_LIGHT = 'light' @@ -16,7 +16,7 @@ const CLASS_LIGHT = 'light' // - value is synced via `createSharedComposable` // https://github.com/vueuse/vueuse/blob/main/packages/core/useDark/index.ts export const useColorScheme = createSharedComposable(() => { - const store = useStorage(STORAGE_KEY, DEFAULT_COLOR_SCHEME_SETTING) + const store = useStorage(STORAGE_KEY, DEFAULT_COLOR_SCHEME_SETTING) const preferredColorScheme = usePreferredColorScheme()