diff --git a/components/comments/cusdis.jsx b/components/comments/cusdis.jsx index f82be22..de4987d 100644 --- a/components/comments/cusdis.jsx +++ b/components/comments/cusdis.jsx @@ -1,18 +1,21 @@ import { ReactCusdis } from 'react-cusdis' import { useRouter } from 'next/router' import { useConfig } from '@/contexts/config' +import { useTheme } from "@/contexts/theme"; export default function Cusdis ({ config, post }) { const router = useRouter() - const { link, lang, appearance } = useConfig() + const { link, lang } = useConfig() + const { scheme } = useTheme() return ( (undefined as any) export function ThemeProvider ({ children }: BasicProps) { const config = useConfig() - const [theme, setTheme] = useState(config.appearance === 'auto' ? 'system' : config.appearnce) + const [theme, setTheme] = useState(config.appearance === 'auto' ? 'system' : config.appearance) const [prefersDark, setPrefersDark] = useState()