Skip to content

Commit

Permalink
Continuing troubleshooting.
Browse files Browse the repository at this point in the history
  • Loading branch information
arivepr committed Aug 23, 2023
1 parent 8ea57da commit 9f63bc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/NotificationsDrawer/NotificationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const NotificationItem = ({ notification }: { notification: NotificationData })

const onCheckboxToggle = () => {
dispatch(!notification.read ? markNotificationAsRead(notification.id) : markNotificationAsUnread(notification.id));
setIsDropdownOpen(!isDropdownOpen);
};

const dropdownItems = [<DropdownItem key="read" onClick={onCheckboxToggle}>{`Mark as ${!notification.read ? 'read' : 'unread'}`}</DropdownItem>];
Expand Down

0 comments on commit 9f63bc5

Please sign in to comment.