mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-09 08:44:45 +08:00
fix(web): priority displayName for settings name error (#336)
This commit is contained in:
@@ -12,3 +12,4 @@ export const AboutTab: Tab = () => {
|
||||
return <Markdown>{about}</Markdown>;
|
||||
};
|
||||
AboutTab.icon = BadgeInfo;
|
||||
AboutTab.displayName = "About";
|
||||
|
||||
@@ -179,5 +179,5 @@ export const GeneralTab: Tab = ({
|
||||
</div>
|
||||
);
|
||||
};
|
||||
GeneralTab.displayName = "";
|
||||
GeneralTab.displayName = "General";
|
||||
GeneralTab.icon = Settings;
|
||||
|
||||
@@ -8,7 +8,7 @@ import { GeneralTab } from "./general-tab";
|
||||
import { MCPTab } from "./mcp-tab";
|
||||
|
||||
export const SETTINGS_TABS = [GeneralTab, MCPTab, AboutTab].map((tab) => {
|
||||
const name = tab.name ?? tab.displayName;
|
||||
const name = tab.displayName ?? tab.name;
|
||||
return {
|
||||
...tab,
|
||||
id: name.replace(/Tab$/, "").toLocaleLowerCase(),
|
||||
|
||||
@@ -180,6 +180,7 @@ export const MCPTab: Tab = ({ settings, onChange }) => {
|
||||
};
|
||||
MCPTab.icon = Blocks;
|
||||
MCPTab.badge = "Beta";
|
||||
MCPTab.displayName = "MCP";
|
||||
|
||||
function mergeServers(
|
||||
existing: MCPServerMetadata[],
|
||||
|
||||
Reference in New Issue
Block a user