fix(sammlung): status-badge gruen statt in der aktionsfarbe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d009230dc2
commit
604a8ac113
@@ -160,7 +160,11 @@ export default async function SammlungPage({ searchParams }: { searchParams: Sea
|
|||||||
.join(' · ')}
|
.join(' · ')}
|
||||||
</p>
|
</p>
|
||||||
<div className="mt-1 flex flex-wrap items-center gap-1">
|
<div className="mt-1 flex flex-wrap items-center gap-1">
|
||||||
<Badge variant={item.status === 'sold' ? 'outline' : 'default'}>
|
{/* Green like "Vorhanden" in the catalog; red stays for actions. */}
|
||||||
|
<Badge
|
||||||
|
variant={item.status === 'sold' ? 'outline' : 'default'}
|
||||||
|
className={item.status === 'sold' ? undefined : 'bg-owned text-owned-foreground'}
|
||||||
|
>
|
||||||
{statusLabel(item.status)}
|
{statusLabel(item.status)}
|
||||||
</Badge>
|
</Badge>
|
||||||
{item.completeness !== 'unknown' ? (
|
{item.completeness !== 'unknown' ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user