mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 10:27:49 +00:00
fix: add tooltip text color for dark theme in all charts
Added color and itemStyle to Recharts Tooltip so text is visible on dark backgrounds.
This commit is contained in:
@@ -111,8 +111,10 @@ export function DailyChart({ data, chartId, title, earningsLabel, countLabel }:
|
||||
border: `1px solid ${colors.tooltipBorder}`,
|
||||
borderRadius: PARTNER_STATS.TOOLTIP.BORDER_RADIUS,
|
||||
fontSize: PARTNER_STATS.TOOLTIP.FONT_SIZE,
|
||||
color: colors.label,
|
||||
}}
|
||||
labelStyle={{ color: colors.label }}
|
||||
itemStyle={{ color: colors.label }}
|
||||
formatter={(value: number | undefined, name: string | undefined) => {
|
||||
const displayValue = value ?? 0;
|
||||
if (name === 'earnings_display') {
|
||||
|
||||
Reference in New Issue
Block a user