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:
@ -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}
|
||||
|
Reference in New Issue
Block a user