feat(shop): display device_name for items in CustomerAccordionList
Some checks failed
Staging Build / build (push) Has been cancelled
Some checks failed
Staging Build / build (push) Has been cancelled
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user