MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / handleNotificationClick

Function handleNotificationClick

src/components/NotificationDropdown.tsx:143–150  ·  view source on GitHub ↗
(notification: Notification)

Source from the content-addressed store, hash-verified

141 };
142
143 const handleNotificationClick = (notification: Notification) => {
144 if (!notification.read) {
145 markAsRead(notification.id);
146 }
147 if (notification.link) {
148 window.location.href = notification.link;
149 }
150 };
151
152 return (
153 <div style={{ position: "relative" }} ref={dropdownRef}>

Callers 1

NotificationDropdownFunction · 0.85

Calls 1

markAsReadFunction · 0.85

Tested by

no test coverage detected