refactor: NEXT 主题配置规整

This commit is contained in:
tangly1024
2022-01-16 10:03:36 +08:00
parent 4909557397
commit f0c2bb05f6
28 changed files with 52 additions and 53 deletions

View File

@@ -1,6 +1,7 @@
import { loadUserThemeFromCookies, saveTheme, useGlobal } from '@/lib/global'
import { useGlobal } from '@/lib/global'
import { faMoon, faSun } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { loadUserThemeFromCookies, saveTheme } from '@/lib/theme'
const DarkModeButton = () => {
const { changeTheme } = useGlobal()