mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 12:45:23 +02:00
fix: move BuyBoxWarningBadge inside stockMap block to prevent duplication
The badge was rendered outside the stockMap conditional, causing it to appear independently of the Amazon stock badge. Now it's grouped inside the block, always appearing immediately next to VendorStockBadge. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
826688a3f6
commit
507af94e1a
@@ -1388,9 +1388,9 @@ const DataGrid: React.FC<DataGridProps> = ({ data, filters, hasCustomerFilter, a
|
|||||||
<>
|
<>
|
||||||
<StockBadge stock={stockMap.get(row.sku?.replace(/(DE|EN)$/i, ''))} />
|
<StockBadge stock={stockMap.get(row.sku?.replace(/(DE|EN)$/i, ''))} />
|
||||||
<VendorStockBadge asin={row.asin} vendorStockMap={vendorStockMap} mode={top50Mode} avgWeeklySales={velocityMap?.get(row.asin.trim().toUpperCase())} />
|
<VendorStockBadge asin={row.asin} vendorStockMap={vendorStockMap} mode={top50Mode} avgWeeklySales={velocityMap?.get(row.asin.trim().toUpperCase())} />
|
||||||
|
<BuyBoxWarningBadge asin={row.asin} buyBoxLostMap={buyBoxLostMap} />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<BuyBoxWarningBadge asin={row.asin} buyBoxLostMap={buyBoxLostMap} />
|
|
||||||
</div>
|
</div>
|
||||||
: dim === 'asin' || dim === 'sku'
|
: dim === 'asin' || dim === 'sku'
|
||||||
? <div className="flex items-center gap-2 min-w-max">
|
? <div className="flex items-center gap-2 min-w-max">
|
||||||
|
|||||||
Reference in New Issue
Block a user