Add condition badges for boss Pokemon mechanics
Show colored pill badges (Mega, G-Max, D-Max, Tera) on boss Pokemon in BossDefeatModal and BossTeamPreview. Starter-dependent condition labels are ignored. Follows EncounterMethodBadge pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
TypeBadge,
|
||||
} from '../components'
|
||||
import { BossDefeatModal } from '../components/BossDefeatModal'
|
||||
import { ConditionBadge } from '../components/ConditionBadge'
|
||||
import type {
|
||||
Route,
|
||||
RouteWithChildren,
|
||||
@@ -239,7 +240,10 @@ function BossTeamPreview({
|
||||
) : (
|
||||
<div className="w-20 h-20 bg-gray-200 dark:bg-gray-700 rounded-full" />
|
||||
)}
|
||||
<span className="text-xs text-gray-500 dark:text-gray-400">Lvl {bp.level}</span>
|
||||
<div className="flex flex-col items-start gap-0.5">
|
||||
<span className="text-xs text-gray-500 dark:text-gray-400">Lvl {bp.level}</span>
|
||||
<ConditionBadge condition={bp.conditionLabel} size="xs" />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user