Skip to content

Commit bc7ba0e

Browse files
committed
update at 2024-04-11 14:05:35
1 parent 2d284eb commit bc7ba0e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/Comment.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22
import { useThemeConfig, useColorMode } from '@docusaurus/theme-common'
3-
import BrowserOnly from '@docusaurus/BrowserOnly'
43
import Giscus, { GiscusProps } from '@giscus/react'
54
import { useLocation } from '@docusaurus/router';
65

@@ -41,8 +40,6 @@ export default function Comment(): JSX.Element {
4140
useColorMode().colorMode === 'dark' ? 'transparent_dark' : 'light'
4241

4342
return (
44-
<BrowserOnly fallback={<div>评论加载中...</div>}>
45-
{() => <Giscus {...giscus} />}
46-
</BrowserOnly>
43+
<Giscus {...giscus} />
4744
)
4845
}

0 commit comments

Comments
 (0)