mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 15:09:51 +00:00
使用cookie管理会话主题,并修复深色主题初始化的BUG
This commit is contained in:
@@ -17,7 +17,7 @@ import { ThemeProvider } from '@/lib/theme'
|
||||
const Ackee = dynamic(() => import('@/components/Ackee'), { ssr: false })
|
||||
const Gtag = dynamic(() => import('@/components/Gtag'), { ssr: false })
|
||||
|
||||
function MyApp ({ Component, pageProps }) {
|
||||
const MyApp = ({ Component, pageProps }) => {
|
||||
return (
|
||||
<LocaleProvider>
|
||||
<ThemeProvider>
|
||||
|
||||
@@ -25,7 +25,7 @@ export async function getStaticProps () {
|
||||
}
|
||||
}
|
||||
|
||||
const index = ({ posts, tags, meta }) => {
|
||||
const Index = ({ posts, tags, meta }) => {
|
||||
return (
|
||||
<BaseLayout meta={meta} tags={tags}>
|
||||
<div className='flex-grow'>
|
||||
@@ -36,4 +36,4 @@ const index = ({ posts, tags, meta }) => {
|
||||
)
|
||||
}
|
||||
|
||||
export default index
|
||||
export default Index
|
||||
|
||||
Reference in New Issue
Block a user