Update sidebar.tsx

This commit is contained in:
Ted 2025-02-24 17:12:58 +08:00
parent fc6bd84614
commit 8f879a24fb
1 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ import DeleteIcon from "../icons/delete.svg";
import MaskIcon from "../icons/mask.svg"; import MaskIcon from "../icons/mask.svg";
import McpIcon from "../icons/mcp.svg"; import McpIcon from "../icons/mcp.svg";
import DragIcon from "../icons/drag.svg"; import DragIcon from "../icons/drag.svg";
import DiscoveryIcon from "../icons/discovery.svg";
import Locale from "../locales"; import Locale from "../locales";
@ -31,7 +32,7 @@ import { isMcpEnabled } from "../mcp/actions";
const DISCOVERY = [ const DISCOVERY = [
{ name: Locale.Plugin.Name, path: Path.Plugins }, { name: Locale.Plugin.Name, path: Path.Plugins },
{ name: "Stable Diffusion", path: Path.Sd }, // { name: "Stable Diffusion", path: Path.Sd },
{ name: Locale.SearchChat.Page.Title, path: Path.SearchChat }, { name: Locale.SearchChat.Page.Title, path: Path.SearchChat },
]; ];
@ -276,13 +277,13 @@ export function SideBar(props: { className?: string }) {
shadow shadow
/> />
)} )}
{/* <IconButton <IconButton
icon={<DiscoveryIcon />} icon={<DiscoveryIcon />}
text={shouldNarrow ? undefined : Locale.Discovery.Name} text={shouldNarrow ? undefined : Locale.Discovery.Name}
className={styles["sidebar-bar-button"]} className={styles["sidebar-bar-button"]}
onClick={() => setshowDiscoverySelector(true)} onClick={() => setshowDiscoverySelector(true)}
shadow shadow
/> */} />
</div> </div>
{showDiscoverySelector && ( {showDiscoverySelector && (
<Selector <Selector