react-os-shell 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -309,15 +309,6 @@ function NotificationBell({
309
309
  refetchInterval: 3e4
310
310
  });
311
311
  const notifications = notifData?.results ?? [];
312
- useEffect(() => {
313
- if (!open) return;
314
- const handler = (e) => {
315
- if (e.target.closest("[data-menu-toggle]")) return;
316
- if (dropdownRef.current && !dropdownRef.current.contains(e.target)) setOpen(false);
317
- };
318
- window.addEventListener("pointerdown", handler);
319
- return () => window.removeEventListener("pointerdown", handler);
320
- }, [open]);
321
312
  const handleClick = (notif) => {
322
313
  if (!notif.is_read) {
323
314
  queryClient.setQueryData(["notification-unread-count"], (old) => old ? { ...old, count: Math.max(0, (old.count || 0) - 1) } : old);