fix: use theme global

pull/29/head
fantasticit 2022-04-25 21:54:59 +08:00
parent bdd498b9df
commit 180eec9c19
1 changed files with 2 additions and 0 deletions

View File

@ -1,12 +1,14 @@
import type { AppProps } from 'next/app'; import type { AppProps } from 'next/app';
import Head from 'next/head'; import Head from 'next/head';
import { useSafari100vh } from 'hooks/use-safari-100vh'; import { useSafari100vh } from 'hooks/use-safari-100vh';
import { useTheme } from 'hooks/use-theme';
import 'viewerjs/dist/viewer.css'; import 'viewerjs/dist/viewer.css';
import 'styles/globals.scss'; import 'styles/globals.scss';
import 'tiptap/styles/index.scss'; import 'tiptap/styles/index.scss';
function MyApp({ Component, pageProps }: AppProps) { function MyApp({ Component, pageProps }: AppProps) {
useSafari100vh(); useSafari100vh();
useTheme();
return ( return (
<> <>