Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 4409d31

Browse files
committed
chore: removed inused code
1 parent adc61a8 commit 4409d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface ChakraUIVuePluginOptions {
2020
const ChakraUIVuePlugin: Plugin = {
2121
install(app, options: ChakraUIVuePluginOptions = {}) {
2222
const theme = options.extendTheme || defaultTheme
23-
const colorMode = options.defaultColorMode || 'light'
23+
const colorMode = theme.config?.initialColorMode || 'light'
2424
app.config.globalProperties.$chakraTheme = theme
2525
app.provide('$chakraTheme', theme as ThemeOverride)
2626
app.provide('$chakraColorMode', colorMode as ColorMode)

0 commit comments

Comments
 (0)