1
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:
2024-03-12 14:58:00 -04:00
parent e66dc37c41
commit e1a26d5257
28 changed files with 460 additions and 414 deletions

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"