diff --git a/src/client/components/ui/chart.tsx b/src/client/components/ui/chart.tsx index cf6c42a..866fe57 100644 --- a/src/client/components/ui/chart.tsx +++ b/src/client/components/ui/chart.tsx @@ -261,7 +261,7 @@ ChartTooltipContent.displayName = "ChartTooltip" const ChartLegend = RechartsPrimitive.Legend -type Payload = NonNullable[number] +type ChartLegendContentItem = NonNullable[number] const ChartLegendContent = React.forwardRef< HTMLDivElement, React.ComponentProps<"div"> & @@ -270,7 +270,7 @@ const ChartLegendContent = React.forwardRef< nameKey?: string } & { selectedItem?: string[] - onItemClick?: (item: Payload) => void + onItemClick?: (item: ChartLegendContentItem) => void } >( (