refactor: 清理 SwitchPanel 未使用变量和导入

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-22 00:51:51 +08:00
parent 391e0c233a
commit 661cc764fe

View File

@@ -4,9 +4,6 @@ import type { Creature } from '../types'
import { getCreatureName } from '../core/creature'
const CYAN = 'ansi:cyan'
const GREEN = 'ansi:green'
const YELLOW = 'ansi:yellow'
const RED = 'ansi:red'
const GRAY = 'ansi:white'
const WHITE = 'ansi:whiteBright'
@@ -22,7 +19,7 @@ export function SwitchPanel({ party, activeId, onSelect, onCancel }: SwitchPanel
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold color={CYAN}> </Text>
{party.map((creature, i) => {
const isActive = creature.id === activeId
return (
<Box key={creature.id}>
<Text>{isActive ? ' ▶ ' : ' '}</Text>