From a32f3d9824a09a2d8c9e97ba211ee5d44c8e2763 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 6 Oct 2024 01:17:51 +0800 Subject: [PATCH] chore: fix ci problem --- src/client/components/ui/chart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } >( (