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

Function clearRead

src/components/NotificationDropdown.tsx:132–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 };
131
132 const clearRead = async () => {
133 try {
134 await fetch("/api/notifications?action=clearRead", {
135 method: "DELETE",
136 });
137 await fetchNotifications();
138 } catch (error) {
139 console.error("Failed to clear read notifications:", error);
140 }
141 };
142
143 const handleNotificationClick = (notification: Notification) => {
144 if (!notification.read) {

Callers

nothing calls this directly

Calls 1

fetchNotificationsFunction · 0.85

Tested by

no test coverage detected