自动深色模式

This commit is contained in:
tangly1024
2022-03-03 16:30:18 +08:00
parent e8a8ef3b89
commit e2be56051b
2 changed files with 12 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import lang from './lang'
import { useContext, createContext, useState, useEffect } from 'react'
import { useContext, createContext, useState } from 'react'
import Router from 'next/router'
import { initDarkMode } from './theme'
const GlobalContext = createContext()