From 2b34150ef7a6f714bd7c57810e2d006d6881fc68 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Mon, 10 Mar 2025 10:04:16 +0800 Subject: [PATCH] refactor(MCPToolsButton): Update icon and no servers text - Replace ToolOutlined icon with CodeOutlined - Update no servers placeholder text to use a more specific translation key --- src/renderer/src/pages/home/Inputbar/MCPToolsButton.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/pages/home/Inputbar/MCPToolsButton.tsx b/src/renderer/src/pages/home/Inputbar/MCPToolsButton.tsx index 8ae8bbb8..2c250c24 100644 --- a/src/renderer/src/pages/home/Inputbar/MCPToolsButton.tsx +++ b/src/renderer/src/pages/home/Inputbar/MCPToolsButton.tsx @@ -1,4 +1,4 @@ -import { ToolOutlined } from '@ant-design/icons' +import { CodeOutlined } from '@ant-design/icons' import { useMCPServers } from '@renderer/hooks/useMCPServers' import { MCPServer } from '@renderer/types' import { Dropdown, Switch, Tooltip } from 'antd' @@ -72,7 +72,7 @@ const MCPToolsButton: FC = ({ enabledMCPs, onEnableMCP, ToolbarButton }) )) ) : (
-
{t('models.no_matches')}
+
{t('settings.mcp.noServers')}
)} @@ -87,7 +87,7 @@ const MCPToolsButton: FC = ({ enabledMCPs, onEnableMCP, ToolbarButton }) overlayClassName="mention-models-dropdown"> - 0 ? '#d97757' : 'var(--color-icon)' }} /> + 0 ? '#d97757' : 'var(--color-icon)' }} />