1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-18 17:38:44 -04:00

update component prop types to use JSX.IntrinsicElements

This commit is contained in:
2022-02-09 09:37:20 -05:00
parent f205a14bdc
commit 885f97fa64
40 changed files with 280 additions and 275 deletions

View File

@@ -3,17 +3,17 @@ import { useTheme } from "next-themes";
import classNames from "classnames";
import { Giscus } from "@giscus/react";
import { giscusConfig } from "../../lib/config";
import type { PropsWithChildren, HTMLAttributes } from "react";
import type { PropsWithChildren } from "react";
import type { GiscusProps } from "@giscus/react";
import styles from "./Comments.module.css";
type Props = HTMLAttributes<HTMLDivElement> &
type CommentsProps = JSX.IntrinsicElements["div"] &
PropsWithChildren<{
title: string;
}>;
const Comments = ({ title, className, ...rest }: Props) => {
const Comments = ({ title, className, ...rest }: CommentsProps) => {
const { resolvedTheme } = useTheme();
return (