From 1836e66429ae81d6aa7f0716399f9f2c219043c3 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 28 Mar 2026 15:56:43 +0100 Subject: [PATCH] update user listener to use native laravel notifications --- src/components/Header/Header.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 41cba77..a287f8c 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -5,7 +5,6 @@ import getUserNotifications from "../../utils/notifications/getUserNotifications import deleteNotificationUser from "../../utils/notifications/deleteNotificationUser.js"; import initEcho from "../../utils/echo/initEcho.js" import readNotifications from "../../utils/notifications/readNotifications.js"; -import { adminNotificationsListener } from "../../utils/echo/listeners/adminNotificationsListener"; import { userNotificationsListener } from "../../utils/echo/listeners/userNotificationsListener.js"; import NotificationCard from "../NotificationCard/NotificationCard"; import { EventContext } from "../../contexts/Events/EventContext.js"; @@ -35,8 +34,7 @@ function Header() { try { const echo = initEcho(); echoInstance = echo; - adminNotificationsListener(echo, user, setNotifications, setunreadNotification, updatePendingMembers); - userNotificationsListener(echo, user, setNotifications, setunreadNotification); + userNotificationsListener(echo, user, setNotifications, setunreadNotification, updatePendingMembers); const notifData = await getUserNotifications();