From ccef97418800fe85849df3ce0100fcc72e30b901 Mon Sep 17 00:00:00 2001 From: "CirnoV (Sickle)" Date: Tue, 19 Nov 2024 17:49:50 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=ED=83=80=EC=9E=85=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/state/interactive-docs/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/state/interactive-docs/index.tsx b/src/state/interactive-docs/index.tsx index 321dffcc3..ace9040f6 100644 --- a/src/state/interactive-docs/index.tsx +++ b/src/state/interactive-docs/index.tsx @@ -16,7 +16,6 @@ import type { DefaultParams, Section, } from "~/components/interactive-docs/code"; -import type { CodePreviewProps } from "~/components/interactive-docs/CodePreview"; export type CodeExample< Params extends DefaultParams, @@ -85,9 +84,9 @@ const [InteractiveDocsProvider, useInteractiveDocs] = createContextProvider( payMethods: "card", }, }); - const [preview, setPreview] = createSignal< - Component | undefined - >(undefined); + const [preview, setPreview] = createSignal( + undefined, + ); const [pgOptions, setPgOptions] = createSignal({ inicis: { payMethods: ["card"], @@ -269,7 +268,7 @@ const [InteractiveDocsProvider, useInteractiveDocs] = createContextProvider( highlighter: () => undefined, highlightSection: () => null, preview: () => undefined, - setPreview: ((_) => {}) as Setter | undefined>, + setPreview: ((_) => {}) as Setter, }, );