From c40d47f737f2082d10b59f31b56a99b9add9eeba Mon Sep 17 00:00:00 2001 From: gizeasy Date: Thu, 8 Dec 2022 18:06:34 +0300 Subject: [PATCH] fix(Bullet): fixed label prop (#74) --- src/components/Bullet/Bullet.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Bullet/Bullet.tsx b/src/components/Bullet/Bullet.tsx index 0a1f3fc..bf53a8e 100644 --- a/src/components/Bullet/Bullet.tsx +++ b/src/components/Bullet/Bullet.tsx @@ -11,7 +11,7 @@ import { useChartTheme } from '##/hooks/useChartTheme'; import { getChart } from '##/utils/getChart'; import { ChartProps } from '##/utils/types/ChartProps'; -export type BulletProps = ChartProps>; +export type BulletProps = ChartProps; type Bullet = (props: BulletProps) => React.ReactElement | null; @@ -27,7 +27,7 @@ export const Bullet: Bullet = React.forwardRef((props, ref) => { const theme = useChartTheme(); const { chart, container } = useChart(G2plotBullet, { - ...rest, + ...(rest as Omit), color: rest.color as unknown as ColorAttr, theme, });