diff --git a/src/components/editor/ConfigPanel.tsx b/src/components/editor/ConfigPanel.tsx index 3e669c8..6562367 100644 --- a/src/components/editor/ConfigPanel.tsx +++ b/src/components/editor/ConfigPanel.tsx @@ -870,11 +870,41 @@ export const ConfigPanel: React.FC = ({ - {/* Vernostné produkty */} + {/* Vernostné produkty (ľubovoľný počet, 2 na riadok) */}
- - Vernostné produkty ({module.data.products?.length || 0}) - +
+ + Vernostné produkty ({module.data.products?.length || 0}) + + +
{(module.data.products || []).map((p: CardProduct, pIdx: number) => ( = ({ onToggle={() => onSelectProduct?.(selectedProductId === p.id ? null : p.id)} availableBadges={availableBadges || []} onChange={(patch) => updateProduct(pIdx, patch)} + onDelete={() => updateData({ products: (module.data.products || []).filter((_: CardProduct, i: number) => i !== pIdx) })} onOpenBadgeEditor={onOpenBadgeManager ? () => onOpenBadgeManager(p.id) : undefined} onApplyBadgeToSection={() => applyBadgeToSection(p)} onApplyBadgeToAll={onApplyBadgeToAll ? () => applyBadgeToAll(p, 'loyalty') : undefined}