Skip to content

Commit

Permalink
fix: typing issue badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj-10 committed Jul 15, 2024
1 parent 1bcdcb3 commit 3ab0515
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,19 @@ const BadgeText = ({
);
};

type IBadgeIconProps = React.ComponentProps<typeof View> &
type IBadgeIconProps = React.ComponentProps<typeof PrimitiveIcon> &
VariantProps<typeof badgeIconStyle>;
const BadgeIcon = React.forwardRef(
(
{
className,
size,
...props
}: { className?: string; color?: string; as?: any } & IBadgeIconProps,
}: {
className?: string;
color?: string;
as?: any;
} & IBadgeIconProps,
ref?: any
) => {
const { size: parentSize, action: parentAction } = useStyleContext(SCOPE);
Expand Down

0 comments on commit 3ab0515

Please sign in to comment.