diff --git a/src/pages/NotificationsRedesign/redesign/Scene.js b/src/pages/NotificationsRedesign/redesign/Scene.js index 103a7a7..04111a7 100644 --- a/src/pages/NotificationsRedesign/redesign/Scene.js +++ b/src/pages/NotificationsRedesign/redesign/Scene.js @@ -1428,41 +1428,59 @@ function ActionItems ({ }) { switch (view) { case View.UNREAD: - if (item.status === Status.Pinned || item.status === Status.PinnedRead) { - return ( - <> - markAsReadPinned(item.id, item.repository)} - > - - - markAsUnread(item.id)} - > - - - - ); - } else { - return ( - <> - markAsRead(item.id, item.repository)} - > - - - markAsPinned(item.id)} - > - - - - ); + switch (item.status) { + case Status.Pinned: + return ( + <> + markAsReadPinned(item.id, item.repository)} + > + + + markAsUnread(item.id)} + > + + + + ); + case Status.PinnedRead: + return ( + <> + markAsPinned(item.id, item.repository)} + > + + + markAsUnread(item.id)} + > + + + + ); + default: + return ( + <> + markAsRead(item.id, item.repository)} + > + + + markAsPinned(item.id)} + > + + + + ); } case View.READ: return (