Skip to content

Commit

Permalink
fix: unread items icon tick
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Oct 12, 2023
1 parent 1546463 commit d581896
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const Root = styled.span`

const Tick = styled.span`
position: absolute;
z-index: 1;
right: 0;
top: 0;
width: 1.5rem;
Expand Down Expand Up @@ -36,9 +35,9 @@ type Props = {

export const UnreadItemsIcon = ({ icon, label, tick, count }: Props) => (
<Root>
{tick && <Tick />}
{typeof count === "number" && count > 0 && <Count>{count}</Count>}
{icon}
{tick && <Tick />}
{label && <span>{label}</span>}
</Root>
)

0 comments on commit d581896

Please sign in to comment.