mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-19 23:16:48 +00:00
测试编译
This commit is contained in:
@@ -3,7 +3,7 @@ import { useContext, createContext, useState } from 'react'
|
||||
import Router from 'next/router'
|
||||
import { initDarkMode } from './theme'
|
||||
import BLOG from '@/blog.config'
|
||||
import { ThemeMap } from '@/themes'
|
||||
import * as ThemeMap from '@/themes'
|
||||
const GlobalContext = createContext()
|
||||
let hasInit = false
|
||||
|
||||
@@ -18,6 +18,7 @@ export function GlobalContextProvider ({ children }) {
|
||||
const [isDarkMode, updateDarkMode] = useState(false)
|
||||
const [onLoading, changeLoadingState] = useState(false)
|
||||
const [theme, setTheme] = useState(BLOG.THEME)
|
||||
console.log('ThemeMap', ThemeMap)
|
||||
const ThemeComponents = ThemeMap[theme]
|
||||
|
||||
Router.events.on('routeChangeStart', (...args) => {
|
||||
|
||||
Reference in New Issue
Block a user