From 9148090fa28ed70f40412f8d48f959d1a18754d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alp=20Sar=C4=B1yer?= <63670898+RavenWits@users.noreply.github.com> Date: Wed, 15 May 2024 01:36:45 +0300 Subject: [PATCH] Update mdx-components.tsx Added className type to get rid of typescript errors. --- components/mdx-components.tsx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/components/mdx-components.tsx b/components/mdx-components.tsx index 35d6d362..6c65652c 100644 --- a/components/mdx-components.tsx +++ b/components/mdx-components.tsx @@ -7,7 +7,7 @@ import { Callout } from "@/components/callout" import { MdxCard } from "@/components/mdx-card" const components = { - h1: ({ className, ...props }) => ( + h1: ({ className, ...props }: { className: string }) => (

), - h2: ({ className, ...props }) => ( + h2: ({ className, ...props }: { className: string }) => (

), - h3: ({ className, ...props }) => ( + h3: ({ className, ...props }: { className: string }) => (

), - h4: ({ className, ...props }) => ( + h4: ({ className, ...props }: { className: string }) => (

), - h5: ({ className, ...props }) => ( + h5: ({ className, ...props }: { className: string }) => (

), - h6: ({ className, ...props }) => ( + h6: ({ className, ...props }: { className: string }) => (
), - a: ({ className, ...props }) => ( + a: ({ className, ...props }: { className: string }) => ( ), - p: ({ className, ...props }) => ( + p: ({ className, ...props }: { className: string }) => (

), - ul: ({ className, ...props }) => ( + ul: ({ className, ...props }: { className: string }) => (