Skip to content

Commit

Permalink
✨ local changes from friday
Browse files Browse the repository at this point in the history
  • Loading branch information
leeandher committed Aug 26, 2024
1 parent 06708ab commit 7b0b9e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion static/app/components/notifications/notificationCentre.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export function NotificationCentre({}: NotificationCentreProps) {
? mailboxNotifs.filter(notif => sources.includes(notif.source))
: mailboxNotifs;
const searchedNotifs = filteredNotifs.filter(
notif => notif.description.includes(search) || notif.title.includes(search)
notif =>
notif.description.includes(search) ||
notif.title.includes(search) ||
JSON.stringify(notif.content).includes(search)
);
return searchedNotifs;
}, [mailbox, notifs, sources, search]);
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/notifications/notificationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function NotificationItem({notification}: {notification: NotificationHist
const notifTime = new Date(notification.date_added);

return (
<Container layout variants={variants} initial="enter" animate="enter" exit="exit">
<Container layout variants={variants} initial="exit" animate="enter" exit="exit">
<NotificationCrumbs notification={notification} />
<NotificationControls>
<NotificationControl
Expand Down

0 comments on commit 7b0b9e8

Please sign in to comment.