disable ssr & dark mode & bar

This commit is contained in:
lyc8503 committed 2023-10-23 00:54:26 +08:00
1 parent 59c9ebf82b
commit 1d431a649f
5 files changed
+24 -10

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import dynamic from 'next/dynamic'
import React from 'react'
const NoSsr = (props: { children: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | React.PromiseLikeOfReactNode | null | undefined }) => (
<React.Fragment>{props.children}</React.Fragment>
)
export default dynamic(() => Promise.resolve(NoSsr), {
ssr: false
})