feat(shop): display company address instead of id in partner selection
All checks were successful
Staging Build / build (push) Successful in 2m53s
All checks were successful
Staging Build / build (push) Successful in 2m53s
This commit is contained in:
@@ -177,7 +177,7 @@ export function StepCustomer({
|
||||
<div className="relative flex-1">
|
||||
<Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" />
|
||||
<Input
|
||||
placeholder="Partner suchen nach Name oder ID..."
|
||||
placeholder="Partner suchen..."
|
||||
value={partnerSearchTerm}
|
||||
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"
|
||||
@@ -259,7 +259,11 @@ export function StepCustomer({
|
||||
</div>
|
||||
<div>
|
||||
<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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user