mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 17:16:16 +08:00
feat: update theme provider to dynamic
This commit is contained in:
+5
-1
@@ -1,8 +1,12 @@
|
||||
import type { AppProps } from 'next/app';
|
||||
import { ThemeProvider } from '@/styles';
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
import '../../public/globals.css';
|
||||
|
||||
const ThemeProvider = dynamic(() => import('@/styles/themeProvider'), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<ThemeProvider>
|
||||
|
||||
Reference in New Issue
Block a user