diff --git a/frontend/src/components/ui/chart.tsx b/frontend/src/components/ui/chart.tsx index f7b762f55..02ce32ccf 100644 --- a/frontend/src/components/ui/chart.tsx +++ b/frontend/src/components/ui/chart.tsx @@ -102,10 +102,21 @@ ${colorConfig const ChartTooltip = RechartsPrimitive.Tooltip +type TooltipPayloadItem = { + value?: string | number + name?: string + dataKey?: string | number + payload?: Record + color?: string + fill?: string +} + const ChartTooltipContent = React.forwardRef< HTMLDivElement, - React.ComponentProps & + Omit, "content"> & React.ComponentProps<"div"> & { + active?: boolean + payload?: TooltipPayloadItem[] hideLabel?: boolean hideIndicator?: boolean indicator?: "line" | "dot" | "dashed"