update user listener to use native laravel notifications

This commit is contained in:
2026-03-28 15:56:43 +01:00
parent 371b38f3e7
commit 1836e66429
+1 -3
View File
@@ -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();