feat(inbox): add red info text for no notifications found

This commit is contained in:
plebeius.eth
2024-01-04 21:08:45 +01:00
parent 716445aa7c
commit 5d4ca287d5
2 changed files with 15 additions and 7 deletions

View File

@@ -44,4 +44,12 @@
.selected {
color: var(--green) !important;
font-weight: bold;
}
.noNotifications {
color: var(--red);
font-size: 13px;
font-family: verdana, Arial, Helvetica, sans-serif;
margin-top: -2px;
text-transform: lowercase;
}

View File

@@ -82,17 +82,17 @@ const Inbox = () => {
return () => window.removeEventListener('scroll', setLastVirtuosoState);
}, [unreadNotificationCount]);
if (account && !notifications.length) {
return 'empty';
}
return (
<div className={styles.content}>
<InboxTabs />
<div className={styles.markAllAsReadButton}>
<button onClick={markAsRead} disabled={!unreadNotificationCount} className={styles.markAsReadButton}>
{t('mark_all_read')}
</button>
{account && notifications.length ? (
<button onClick={markAsRead} disabled={!unreadNotificationCount} className={styles.markAsReadButton}>
{t('mark_all_read')}
</button>
) : (
<div className={styles.noNotifications}>there doesn't seem to be anything here</div>
)}
</div>
<Virtuoso
increaseViewportBy={{ bottom: 1200, top: 600 }}