From 1fb3da2597120755bebaa88da221f6eee1ae1e70 Mon Sep 17 00:00:00 2001 From: kwooshung Date: Wed, 21 Feb 2024 02:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(lib):=20Fix=20the=20problem?= =?UTF-8?q?=20of=20quoting=20the=20name=20of=20the=20theme=20category?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/useThemes/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/useThemes/index.ts b/src/useThemes/index.ts index 2f94f09..ccaf927 100644 --- a/src/useThemes/index.ts +++ b/src/useThemes/index.ts @@ -1,5 +1,5 @@ import { useState, useEffect, useCallback } from 'react'; -import { theme } from 'lomind'; +import { themes } from 'lomind'; import { TThemeResult } from './interfaces'; /** @@ -10,7 +10,7 @@ import { TThemeResult } from './interfaces'; * @returns {TThemeResult} 主题管理器返回值 */ const useTheme = (initialTheme: string = 'auto', initialThemes: string[] = ['light', 'dark', 'auto']): TThemeResult => { - const themeManager = theme.getInstance(initialTheme, initialThemes); + const themeManager = themes.getInstance(initialTheme, initialThemes); const [currentTheme, setCurrentTheme] = useState(themeManager.getCurrent()); const setTheme = useCallback(