mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
SidebarItem: fix status priority, if graph is not cleaned up correctly
This commit is contained in:
parent
2777bd9942
commit
743130829e
@ -24,13 +24,13 @@ function useAssociationStatus(resource: string) {
|
||||
const { count, each } = stats;
|
||||
const hasNotifications = false;
|
||||
const hasUnread = count > 0 || each.length > 0;
|
||||
return hasNotifications
|
||||
return !isSubscribed
|
||||
? 'unsubscribed'
|
||||
: hasNotifications
|
||||
? 'notification'
|
||||
: hasUnread
|
||||
? 'unread'
|
||||
: isSubscribed
|
||||
? undefined
|
||||
: 'unsubscribed';
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function SidebarItemBase(props: {
|
||||
|
Loading…
Reference in New Issue
Block a user