mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-17 04:30:29 +03:00
updated NotificationBadge component
This commit is contained in:
parent
7b0aa7b770
commit
9e9ea41bdd
5 changed files with 23 additions and 30 deletions
|
|
@ -34,15 +34,12 @@ function ChannelSelector({
|
|||
<Text variant="b1">{children}</Text>
|
||||
</div>
|
||||
<div className="channel-selector__badge-container">
|
||||
{
|
||||
notificationCount !== 0
|
||||
? unread && (
|
||||
<NotificationBadge alert={alert}>
|
||||
{notificationCount}
|
||||
</NotificationBadge>
|
||||
)
|
||||
: unread && <div className="channel-selector--unread" />
|
||||
}
|
||||
{ unread && (
|
||||
<NotificationBadge
|
||||
alert={alert}
|
||||
content={notificationCount !== 0 ? notificationCount : null}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue