1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-01 10:46:38 -04:00

bump next

This commit is contained in:
2022-11-12 09:05:43 -05:00
parent f51d48f622
commit 5c5985445b
4 changed files with 457 additions and 503 deletions

View File

@ -1,4 +1,3 @@
import clsx from "clsx";
import Giscus from "@giscus/react";
import useTheme from "../../hooks/useTheme";
import { styled, theme } from "../../lib/styles/stitches.config";
@ -17,16 +16,12 @@ export type CommentsProps = ComponentProps<typeof Wrapper> & {
title: string;
};
const Comments = ({ title, className, ...rest }: CommentsProps) => {
const Comments = ({ title, ...rest }: CommentsProps) => {
const { activeTheme } = useTheme();
// TODO: use custom `<Loading />` spinner component during suspense
return (
<Wrapper
id="comments"
className={clsx([className, "giscus"])} // https://github.com/giscus/giscus/blob/fa0975c980d91e691e7e4b4f59fd10bec2e20d90/client.ts#L81
{...rest}
>
<Wrapper {...rest}>
<Giscus
{...(giscusConfig as GiscusProps)}
term={title}