Always group income
This commit is contained in:
parent
029021b351
commit
a6143c1abb
|
@ -83,16 +83,16 @@ export default function Notifications() {
|
||||||
{paginatedNotificationGroups.length === 0 &&
|
{paginatedNotificationGroups.length === 0 &&
|
||||||
"You don't have any notifications. Try changing your settings to see more."}
|
"You don't have any notifications. Try changing your settings to see more."}
|
||||||
{paginatedNotificationGroups.map((notification) =>
|
{paginatedNotificationGroups.map((notification) =>
|
||||||
notification.notifications.length === 1 ? (
|
notification.type === 'income' ? (
|
||||||
<NotificationItem
|
|
||||||
notification={notification.notifications[0]}
|
|
||||||
key={notification.notifications[0].id}
|
|
||||||
/>
|
|
||||||
) : notification.type === 'income' ? (
|
|
||||||
<IncomeNotificationGroupItem
|
<IncomeNotificationGroupItem
|
||||||
notificationGroup={notification}
|
notificationGroup={notification}
|
||||||
key={notification.groupedById + notification.timePeriod}
|
key={notification.groupedById + notification.timePeriod}
|
||||||
/>
|
/>
|
||||||
|
) : notification.notifications.length === 1 ? (
|
||||||
|
<NotificationItem
|
||||||
|
notification={notification.notifications[0]}
|
||||||
|
key={notification.notifications[0].id}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<NotificationGroupItem
|
<NotificationGroupItem
|
||||||
notificationGroup={notification}
|
notificationGroup={notification}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user