mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-25 23:16:49 +00:00
fix/dark-mode-giscus
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import BLOG from '@/blog.config'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import { Giscus } from '@giscus/react'
|
||||
|
||||
/**
|
||||
@@ -8,8 +9,10 @@ import { Giscus } from '@giscus/react'
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
const GiscusComponent = ({ isDarkMode }) => {
|
||||
const GiscusComponent = () => {
|
||||
const { isDarkMode } = useGlobal()
|
||||
const theme = isDarkMode ? 'dark' : 'light'
|
||||
|
||||
return (
|
||||
<Giscus
|
||||
repo={BLOG.COMMENT_GISCUS_REPO}
|
||||
|
||||
Reference in New Issue
Block a user