mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-01 11:26:39 -04:00
refactor .js files to ES modules where possible
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import Giscus from "@giscus/react";
|
||||
import useTheme from "../../hooks/useTheme";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
import { giscusConfig } from "../../lib/config";
|
||||
import config from "../../lib/config";
|
||||
import type { ComponentPropsWithoutRef } from "react";
|
||||
import type { GiscusProps } from "@giscus/react";
|
||||
|
||||
@ -23,7 +23,7 @@ const Comments = ({ title, ...rest }: CommentsProps) => {
|
||||
return (
|
||||
<Wrapper {...rest}>
|
||||
<Giscus
|
||||
{...(giscusConfig as GiscusProps)}
|
||||
{...(config.giscusConfig as GiscusProps)}
|
||||
term={title}
|
||||
mapping="specific"
|
||||
reactionsEnabled="1"
|
||||
|
Reference in New Issue
Block a user