From 661cc764feaef0a64bd65c7a1418d60529bdc25b Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Wed, 22 Apr 2026 00:51:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86=20SwitchPanel=20?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E5=8F=98=E9=87=8F=E5=92=8C=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- packages/pokemon/src/ui/SwitchPanel.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/pokemon/src/ui/SwitchPanel.tsx b/packages/pokemon/src/ui/SwitchPanel.tsx index 2dd861e05..bf26b8b0f 100644 --- a/packages/pokemon/src/ui/SwitchPanel.tsx +++ b/packages/pokemon/src/ui/SwitchPanel.tsx @@ -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 换人 {party.map((creature, i) => { - + const isActive = creature.id === activeId return ( {isActive ? ' ▶ ' : ' '}