From 49564083c7a16fbda31452a768ee6c9be9f8a605 Mon Sep 17 00:00:00 2001 From: Rizky Date: Thu, 26 Oct 2023 18:01:58 +0700 Subject: [PATCH] fix add npm --- .../render/ed/panel/popup/npm/npm-import.tsx | 56 +++++++++++++------ 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/app/web/src/render/ed/panel/popup/npm/npm-import.tsx b/app/web/src/render/ed/panel/popup/npm/npm-import.tsx index 07852740..04eae36e 100644 --- a/app/web/src/render/ed/panel/popup/npm/npm-import.tsx +++ b/app/web/src/render/ed/panel/popup/npm/npm-import.tsx @@ -11,8 +11,11 @@ export const EdNpmImport = ({ mode }: { mode: "page" | "site" }) => { const local = useLocal({ search: { text: "", + timeout: null as any, + loading: false, result: [] as AlgoliaResult[], options: [] as { label: string; value: string }[], + el: null as null | HTMLInputElement, }, status: "init" as "init" | "ready", size: 0, @@ -43,37 +46,50 @@ export const EdNpmImport = ({ mode }: { mode: "page" | "site" }) => { }, [mode === "page" ? p.page.cur.id : p.site.id]); return ( -
+
{mode}