From 39d7d9f13a2f83f537d8d93aaab0dea7edcabcf7 Mon Sep 17 00:00:00 2001 From: heweikang Date: Tue, 20 Aug 2024 19:44:22 +0800 Subject: [PATCH] migrate the search button to plugins discovery --- app/components/sidebar.tsx | 9 --------- app/constant.ts | 7 ++++++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 0d9198b523d..adf46262099 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -12,7 +12,6 @@ import DeleteIcon from "../icons/delete.svg"; import MaskIcon from "../icons/mask.svg"; import DragIcon from "../icons/drag.svg"; import DiscoveryIcon from "../icons/discovery.svg"; -import SearchIcon from "../icons/zoom.svg"; import Locale from "../locales"; import { useAppConfig, useChatStore } from "../store"; @@ -250,14 +249,6 @@ export function SideBar(props: { className?: string }) { onClick={() => setShowPluginSelector(true)} shadow /> - } - className={styles["sidebar-bar-button"]} - onClick={() => - navigate(Path.SearchChat, { state: { fromHome: true } }) - } - shadow - /> {showPluginSelector && (