feat(shop): display device_name for items in CustomerAccordionList
Some checks failed
Staging Build / build (push) Has been cancelled

This commit is contained in:
DanielS
2026-07-22 17:36:11 +02:00
parent c5285dc907
commit 623dab192b

View File

@@ -222,10 +222,11 @@ export function CustomerAccordionList({ customers }: CustomerAccordionListProps)
key={idx}
className="text-xs bg-white/5 border border-white/10 rounded-md px-2 py-0.5 text-slate-300"
>
<span className="font-semibold text-white mr-1">{item.device_name || 'Kasse'}:</span>
{item.product_name}
{item.selected_modules?.length > 0 && (
<span className="text-slate-500 ml-1">
(+{item.selected_modules.length} Module)
(+{item.selected_modules.length} {item.selected_modules.length === 1 ? 'Modul' : 'Module'})
</span>
)}
</span>