Skip to content

Commit

Permalink
fix(elements): remove left 'as' prop in IconButton
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 9, 2024
1 parent 708db85 commit b83dc13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ export function IconButton({
return (
<>
{badgeNumber === undefined ? (
<PrimaryButton as={BaseButton} {...buttonProps} />
<PrimaryButton {...buttonProps} />
) : (
<Wrapper className={className} style={style}>
<BadgeNumber $backgroundColor={badgeBackgroundColor} $color={badgeColor} $size={size}>
{badgeNumber}
</BadgeNumber>
<PrimaryButton as={BaseButton} {...buttonProps} />
<PrimaryButton {...buttonProps} />
</Wrapper>
)}
</>
Expand Down

0 comments on commit b83dc13

Please sign in to comment.