update notifications css
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import formatDateTime from '../../date/formatTime.js';
|
||||
|
||||
export const userNotificationsListener = (echo, userData, setNotifications, setunreadNotification) => {
|
||||
if (!userData?.id) return null;
|
||||
|
||||
@@ -8,6 +10,7 @@ export const userNotificationsListener = (echo, userData, setNotifications, setu
|
||||
const newNotification = {
|
||||
id: Date.now(),
|
||||
content: `L'événement ${event.event.name} a été supprimé ! Vous n'y participez donc plus.`,
|
||||
created_at: formatDateTime(Date.now()),
|
||||
pivot: { unread: 1 }
|
||||
};
|
||||
setNotifications(prev => [newNotification, ...prev]);
|
||||
@@ -17,6 +20,7 @@ export const userNotificationsListener = (echo, userData, setNotifications, setu
|
||||
const newNotification = {
|
||||
id: Date.now(),
|
||||
content: `La tâche ${event.task.name} de l'événement ${event.event.name} a été supprimé ! Vous n'y participez donc plus.`,
|
||||
created_at: formatDateTime(Date.now()),
|
||||
pivot: { unread: 1 }
|
||||
};
|
||||
setNotifications(prev => [newNotification, ...prev]);
|
||||
@@ -26,6 +30,7 @@ export const userNotificationsListener = (echo, userData, setNotifications, setu
|
||||
const newNotification = {
|
||||
id: Date.now(),
|
||||
content: `Vous avez été assigné à la tâche ${event.task.name} de l'événement ${event.event.name}`,
|
||||
created_at: formatDateTime(Date.now()),
|
||||
pivot: { unread: 1 }
|
||||
};
|
||||
setNotifications(prev => [newNotification, ...prev]);
|
||||
@@ -35,6 +40,7 @@ export const userNotificationsListener = (echo, userData, setNotifications, setu
|
||||
const newNotification = {
|
||||
id: Date.now(),
|
||||
content: `Vous avez été désassigné de la tâche ${event.task.name} de l'événement ${event.event.name}`,
|
||||
created_at: formatDateTime(Date.now()),
|
||||
pivot: { unread: 1 }
|
||||
};
|
||||
setNotifications(prev => [newNotification, ...prev]);
|
||||
|
||||
Reference in New Issue
Block a user