Skip to content

Commit f6818c2

Browse files
committed
Fix.
1 parent 47db4c1 commit f6818c2

File tree

5 files changed

+8
-99
lines changed

5 files changed

+8
-99
lines changed

components/mdx/CodeTabs.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { Tab, TabGroup, TabList, TabPanel, TabPanels } from "@headlessui/react";
44
import { AnimatePresence, motion } from "framer-motion";
5-
import { Children, isValidElement, useCallback, useState } from "react";
5+
import React, { Children, ComponentType, isValidElement, ReactNode, useCallback, useState } from "react";
66
import * as SIIcons from "react-icons/si";
77

88
import { cn } from "@/lib/utils";
@@ -43,7 +43,7 @@ const getIcon = (label: string) => {
4343
const key = label.trim().toLowerCase();
4444
const iconName =
4545
ICONS[key] ?? `Si${key.replace(/[^a-z0-9]/gi, "").replace(/^./, (c) => c.toUpperCase())}`;
46-
return (SIIcons as Record<string, React.ComponentType<any>>)[iconName];
46+
return (SIIcons as Record<string, ComponentType<any>>)[iconName];
4747
};
4848

4949
const LanguageIcon = ({ label }: { label: string }) => {
@@ -63,7 +63,7 @@ export const CodeTabs = ({
6363
onChange,
6464
className,
6565
}: {
66-
children: React.ReactNode;
66+
children: ReactNode;
6767
defaultIndex?: number;
6868
onChange?: (index: number) => void;
6969
className?: string;
@@ -163,12 +163,10 @@ export const CodeTabs = ({
163163
};
164164

165165
export function CodeTab({
166-
label,
167166
children,
168-
disabled,
169167
}: {
170168
label: string;
171-
children: React.ReactNode;
169+
children: ReactNode;
172170
disabled?: boolean;
173171
}) {
174172
return <>{children}</>;

components/mdx/Inline.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { HTMLAttributes, ReactNode } from "react";
2+
23
import { cn } from "@/lib/utils";
34

45
interface InlineProps extends HTMLAttributes<HTMLElement> {

components/mdx/mdx-components.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
12
import type { MDXComponents } from "mdx/types";
23
import React from "react";
34

@@ -10,8 +11,6 @@ import { AlertBox } from "@/components/ui/alert-box";
1011

1112
type HeadingProps = React.HTMLAttributes<HTMLHeadingElement>;
1213

13-
// @ts-ignore
14-
// @ts-ignore
1514
export const components: MDXComponents = {
1615
h1: (props: HeadingProps) => (
1716
<Heading
@@ -73,7 +72,8 @@ export const components: MDXComponents = {
7372

7473
return <code {...rest}>{children}</code>;
7574
},
76-
// @ts-expect-error
75+
76+
// @ts-expect-error idk
7777
pre: CodeBlock,
7878

7979
blockquote: (props) => (

components/mdx/table/TableWrapper.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

components/mdx/table/useTableVisibility.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)