← All changes
|
backend/views/components/Analytics/components/dashboard/CustomTooltipByRevenueChart.jsx
+3
-3
1.4.11
→
1.4.21
View file →
| @@ -2,16 +2,16 @@ | ||
| 2 | 2 | |
| 3 | 3 | const CustomTooltipByRevenueChart = ({ active, payload, label, interval }) => { |
| 4 | 4 | if (!active || !payload?.length) return null; |
| 5 | 5 | return ( |
| 6 | - <div className="disco-bg-[#1e2327] disco-text-white disco-rounded-lg disco-p-2 disco-text-[10px] disco-shadow-lg"> | |
| 7 | - <p className="disco-text-[#bbcfff] disco-mb-1"> | |
| 6 | + <div className="disco:bg-[#1e2327] disco:text-white disco:rounded-lg disco:p-2 disco:text-[10px] disco:shadow-lg"> | |
| 7 | + <p className="disco:text-[#bbcfff] disco:mb-1"> | |
| 8 | 8 | {formatTooltipDate(label, interval)} |
| 9 | 9 | </p> |
| 10 | 10 | {payload.map((p) => ( |
| 11 | 11 | <p key={p.name} style={{ color: p.color }}> |
| 12 | 12 | {p.name === 'net_sales' ? 'Net Sales' : 'Discount Sales'}:{' '} |
| 13 | - <strong className="disco-text-white">{fmt(p.value)}</strong> | |
| 13 | + <strong className="disco:text-white">{fmt(p.value)}</strong> | |
| 14 | 14 | </p> |
| 15 | 15 | ))} |
| 16 | 16 | </div> |
| 17 | 17 | ); |