update notifications css

This commit is contained in:
2026-01-11 20:05:20 +01:00
parent c906cb733e
commit b0d7d3c0af
6 changed files with 98 additions and 22 deletions
+3 -11
View File
@@ -11,6 +11,8 @@ import readNotifications from "../../utils/notifications/readNotifications.js";
import getUser from "../../utils/getUser.js";
import { userCreatedListener } from "../../utils/echo/listeners/userCreatedListener";
import { userNotificationsListener } from "../../utils/echo/listeners/userNotificationsListener.js";
import NotificationCard from "../NotificationCard/NotificationCard.jsx";
@@ -176,17 +178,7 @@ function Header() {
{notifications.length === 0 ? (
<p className={styles.notification}>Vous n'avez aucune notification !</p>
) : (
notifications.map((notification, index) => (
<div className={styles.notification} key={index}>
<p>{notification.content}</p>
<button
className={styles.closeBtn}
onClick={() => deleteNotification(notification.id)}
>
<img src="close.svg" alt="supprimer la notification"/>
</button>
</div>
))
<NotificationCard notifications={notifications} deleteNotification={deleteNotification} />
)}
</div>
</div>