1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-21 12:05:30 -04:00

all components should accept additional classnames

This commit is contained in:
2022-01-20 12:06:05 -05:00
parent 2162e9d563
commit 7e37adabc1
22 changed files with 150 additions and 86 deletions
+4 -2
View File
@@ -1,4 +1,5 @@
import { useTheme } from "next-themes";
import classNames from "classnames";
import { Giscus } from "@giscus/react";
import { giscusConfig } from "../../lib/config";
import type { GiscusProps } from "@giscus/react";
@@ -7,13 +8,14 @@ import styles from "./Comments.module.css";
type Props = {
title: string;
className?: string;
};
const Comments = ({ title }: Props) => {
const Comments = ({ title, className }: Props) => {
const { resolvedTheme } = useTheme();
return (
<div className={styles.wrapper}>
<div className={classNames(styles.wrapper, className)}>
<Giscus
{...(giscusConfig as GiscusProps)}
term={title}