Skip to content

Commit c4ffa42

Browse files
susnuxShGKme
andauthored
Update src/composables/useIsDarkTheme/index.ts
Co-authored-by: Grigorii K. Shartsev <me@shgk.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 762c86b commit c4ffa42

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/composables/useIsDarkTheme/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ import { ref, readonly, watch, inject, computed } from 'vue'
1010
import { checkIfDarkTheme } from '../../functions/isDarkTheme/index.ts'
1111

1212
/**
13-
* Symbol used to provide the enforced dark / light theme state.
14-
* Injected by `NcThemeProvider`.
13+
* Enforced dark / light theme state
1514
*/
16-
export const KEY_ENFORCE_THEME = Symbol('enforce-theme')
15+
export const ENFORCE_THEME_KEY: InjectionKey<ComputedRef<'light' | 'dark' | ''>> = Symbol.for('enforce-theme')
1716

1817
/**
1918
* Check whether the dark theme is enabled on a specific element.

0 commit comments

Comments
 (0)