GEN-2: surface Farbschlag images (FarbschlagImage component) in breeding results, animal detail, form picker
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useState } from 'react'
|
||||
import { de } from '../strings/de'
|
||||
import type { BreedingResult } from '../genetics'
|
||||
import FarbschlagImage from './FarbschlagImage'
|
||||
|
||||
function warningText(code: string): string {
|
||||
const map = de.genetics.warnings as Record<string, string>
|
||||
@@ -44,6 +45,7 @@ export default function BreedingResultView({ result, title }: BreedingResultView
|
||||
<ul className="farbschlag-cards">
|
||||
{result.byFarbschlag.map((f) => (
|
||||
<li key={f.farbschlag} className="farbschlag-card">
|
||||
<FarbschlagImage name={f.farbschlag} />
|
||||
<span className="farbschlag-card__name">{f.farbschlag}</span>
|
||||
<span className="farbschlag-card__prob">
|
||||
{f.probability.percent}
|
||||
|
||||
Reference in New Issue
Block a user