Skip to content

Commit

Permalink
Update URL params for notitication items to point to its configuratio…
Browse files Browse the repository at this point in the history
…n when clicked on Manage this event
  • Loading branch information
radekkaluzik committed Jul 4, 2024
1 parent 7a19bed commit 21487e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/NotificationsDrawer/NotificationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ const NotificationItem: React.FC<NotificationItemProps> = ({ notification, onNav

const notificationDropdownItems = [
<DropdownItem key="read" onClick={onMarkAsRead}>{`Mark as ${!notification.read ? 'read' : 'unread'}`}</DropdownItem>,
<DropdownItem key="manage-event" onClick={() => onNavigateTo('settings/notifications/configure-events')}>
<DropdownItem
key="manage-event"
onClick={() => onNavigateTo(`/settings/notifications/configure-events?bundle=${notification.bundle}&tab=configuration`)}
>
Manage this event
</DropdownItem>,
];
Expand Down
1 change: 1 addition & 0 deletions src/state/atoms/notificationDrawerAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type NotificationData = {
source: string;
bundle: string;
created: string;
bundle: string;
};

export type NotificationsPayload = {
Expand Down

0 comments on commit 21487e8

Please sign in to comment.