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 ? ' ▶ ' : ' '}