移除Preact框架、引入react-hook检查

This commit is contained in:
tangly1024
2022-11-30 22:08:15 +08:00
parent c527673b84
commit 2f76a7314c
12 changed files with 54 additions and 171 deletions

View File

@@ -43,9 +43,6 @@ const ValineComponent = dynamic(() => import('@/components/ValineComponent'), {
})
const Comment = ({ frontMatter }) => {
if (!frontMatter) {
return <>Loading...</>
}
const { isDarkMode } = useGlobal()
const router = useRouter()
@@ -61,6 +58,10 @@ const Comment = ({ frontMatter }) => {
}, 200)
}, [])
if (!frontMatter) {
return <>Loading...</>
}
return (
<div id='comment' className='comment mt-5 text-gray-800 dark:text-gray-300'>
<Tabs>