rename content into message for notifications
This commit is contained in:
@@ -6,9 +6,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
|
|||||||
.notification((notification) => {
|
.notification((notification) => {
|
||||||
const newNotification = {
|
const newNotification = {
|
||||||
id: notification.id,
|
id: notification.id,
|
||||||
content: notification.message,
|
data: { message: notification.message },
|
||||||
|
read_at: null,
|
||||||
created_at: new Date().toISOString(),
|
created_at: new Date().toISOString(),
|
||||||
pivot: { unread: 1 }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
setNotifications(prev => [newNotification, ...prev]);
|
setNotifications(prev => [newNotification, ...prev]);
|
||||||
|
|||||||
Reference in New Issue
Block a user