refactor .js files to ES modules where possible

This commit is contained in:
jake committed 2024-03-12 14:58:00 -04:00
1 parent e66dc37c41
commit e1a26d5257
28 files changed
+460 -414

No files matched your search

+2 -2
View File
@@ -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"