update user listener to use native laravel notifications
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user