Skip to content

Commit

Permalink
fix(Bullet): fixed label prop (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
gizeasy authored Dec 8, 2022
1 parent e1aaad8 commit c40d47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Bullet/Bullet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useChartTheme } from '##/hooks/useChartTheme';
import { getChart } from '##/utils/getChart';
import { ChartProps } from '##/utils/types/ChartProps';

export type BulletProps = ChartProps<Omit<G2plotBulletProps, 'label'>>;
export type BulletProps = ChartProps<G2plotBulletProps>;

type Bullet = (props: BulletProps) => React.ReactElement | null;

Expand All @@ -27,7 +27,7 @@ export const Bullet: Bullet = React.forwardRef((props, ref) => {

const theme = useChartTheme();
const { chart, container } = useChart(G2plotBullet, {
...rest,
...(rest as Omit<BulletProps, 'label'>),
color: rest.color as unknown as ColorAttr,
theme,
});
Expand Down

0 comments on commit c40d47f

Please sign in to comment.