Skip to content

Commit 5a99628

Browse files
committed
refactor(ui): 移除McpStatusList中不必要的React导入和文本显示
- 删除了未使用的useEffect导入,简化依赖引入 - 移除了界面中显示的当前索引及总数文本,减少冗余信息显示 - 优化了McpStatusList组件代码的可读性和整洁度
1 parent 35b686d commit 5a99628

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/ui/McpStatusList.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useMemo, useCallback, useEffect } from "react";
1+
import React, { useState, useMemo, useCallback } from "react";
22
import { Box, Text, useInput, useWindowSize } from "ink";
33
import type { McpServerStatus } from "../mcp/mcp-manager";
44

@@ -414,9 +414,6 @@ function ServerDetailView({
414414
{server.name}
415415
</Text>
416416
<Text dimColor>— Details</Text>
417-
<Text>
418-
{activeIndex + 1}/{totalItems}
419-
</Text>
420417
</Box>
421418
{/* Server info */}
422419
<Box paddingX={1} marginLeft={3}>

0 commit comments

Comments
 (0)