mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
fix build
This commit is contained in:
@@ -12,8 +12,7 @@ import SideBarDrawer from './SideBarDrawer'
|
||||
* @returns 主题切换
|
||||
*/
|
||||
const ThemeSwitch = () => {
|
||||
const { theme, locale, isDarkMode, toggleDarkMode } =
|
||||
useGlobal()
|
||||
const { theme, locale, isDarkMode, toggleDarkMode } = useGlobal()
|
||||
const router = useRouter()
|
||||
const currentTheme = getQueryParam(router.asPath, 'theme') || theme
|
||||
const [sideBarVisible, setSideBarVisible] = useState(false)
|
||||
|
||||
Reference in New Issue
Block a user