feat(shop): display company address instead of id in partner selection
All checks were successful
Staging Build / build (push) Successful in 2m53s

This commit is contained in:
DanielS
2026-07-22 17:25:08 +02:00
parent 061147701e
commit 6cd5eb917c

View File

@@ -177,7 +177,7 @@ export function StepCustomer({
<div className="relative flex-1"> <div className="relative flex-1">
<Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" /> <Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" />
<Input <Input
placeholder="Partner suchen nach Name oder ID..." placeholder="Partner suchen..."
value={partnerSearchTerm} value={partnerSearchTerm}
onChange={(e) => setPartnerSearchTerm(e.target.value)} onChange={(e) => setPartnerSearchTerm(e.target.value)}
className="pl-9 bg-white/5 border-white/10 text-white placeholder:text-slate-500 focus:border-primary text-sm h-9" className="pl-9 bg-white/5 border-white/10 text-white placeholder:text-slate-500 focus:border-primary text-sm h-9"
@@ -259,7 +259,11 @@ export function StepCustomer({
</div> </div>
<div> <div>
<p className="font-semibold text-white text-sm">{c.name}</p> <p className="font-semibold text-white text-sm">{c.name}</p>
<p className="text-xs text-slate-500 font-mono">ID: {c.id}</p> {(c.street || c.zip || c.city) && (
<p className="text-xs text-slate-400 mt-0.5">
{[c.street, [c.zip, c.city].filter(Boolean).join(' ')].filter(Boolean).join(', ')}
</p>
)}
</div> </div>
</div> </div>