Skip to content

Commit

Permalink
Continuing troubleshooting.
Browse files Browse the repository at this point in the history
  • Loading branch information
arivepr committed Aug 29, 2023
1 parent 2fc0e83 commit 47a843a
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 47a843a

Please sign in to comment.