mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
chore: 移除 SwitchPanel 未使用的 calculateStats 导入
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,6 @@ import React from 'react'
|
|||||||
import { Box, Text } from '@anthropic/ink'
|
import { Box, Text } from '@anthropic/ink'
|
||||||
import type { Creature } from '../types'
|
import type { Creature } from '../types'
|
||||||
import { getCreatureName } from '../core/creature'
|
import { getCreatureName } from '../core/creature'
|
||||||
import { calculateStats } from '../core/creature'
|
|
||||||
|
|
||||||
const CYAN = 'ansi:cyan'
|
const CYAN = 'ansi:cyan'
|
||||||
const GREEN = 'ansi:green'
|
const GREEN = 'ansi:green'
|
||||||
@@ -23,10 +22,6 @@ export function SwitchPanel({ party, activeId, onSelect, onCancel }: SwitchPanel
|
|||||||
<Box flexDirection="column" borderStyle="round" paddingX={1}>
|
<Box flexDirection="column" borderStyle="round" paddingX={1}>
|
||||||
<Text bold color={CYAN}> 换人 </Text>
|
<Text bold color={CYAN}> 换人 </Text>
|
||||||
{party.map((creature, i) => {
|
{party.map((creature, i) => {
|
||||||
const stats = calculateStats(creature)
|
|
||||||
const isActive = creature.id === activeId
|
|
||||||
const hpPct = 100 // No current HP tracking in v2, assume full
|
|
||||||
const hpColor = hpPct > 50 ? GREEN : hpPct > 25 ? YELLOW : RED
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box key={creature.id}>
|
<Box key={creature.id}>
|
||||||
|
|||||||
Reference in New Issue
Block a user