From 6076d5b74c33e866268c16283ea0a9c1c67a4f3e Mon Sep 17 00:00:00 2001 From: icarus Date: Tue, 12 Aug 2025 22:37:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(InputbarTools):=20=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8DgetMenuItems=E4=B8=BAmenuItems=E4=BB=A5=E6=8F=90?= =?UTF-8?q?=E9=AB=98=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/pages/home/Inputbar/InputbarTools.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx b/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx index 9053a4e02e..efd9702679 100644 --- a/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx +++ b/src/renderer/src/pages/home/Inputbar/InputbarTools.tsx @@ -501,7 +501,7 @@ const InputbarTools = ({ return hiddenTools.filter((tool) => tool.condition ?? true).length > 0 }, [hiddenTools]) - const getMenuItems = useMemo(() => { + const menuItems = useMemo(() => { const baseItems: ItemType[] = [...visibleTools, ...hiddenTools].map((tool) => ({ label: tool.label, key: tool.key, @@ -533,7 +533,7 @@ const InputbarTools = ({ }, [hiddenTools, t, targetTool, toggleToolVisibility, visibleTools]) return ( - + { const target = e.target as HTMLElement