Convert NotificationCard to Typescript

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2026-03-18 20:58:30 +01:00
1 parent 5787f941fd
commit 724ae99b29
3 files changed
+16 -12

No files matched your search

+2 -8
View File
@@ -7,17 +7,11 @@ import initEcho from "../../utils/echo/initEcho.js"
import readNotifications from "../../utils/notifications/readNotifications.js";
import { userCreatedListener } from "../../utils/echo/listeners/userCreatedListener";
import { userNotificationsListener } from "../../utils/echo/listeners/userNotificationsListener.js";
import NotificationCard from "../NotificationCard/NotificationCard.jsx";
import NotificationCard from "../NotificationCard/NotificationCard";
import { EventContext } from "../../contexts/Events/EventContext.js";
import { AuthContext } from "../../contexts/Auth/AuthContext.js";
import { PendingMembersContext } from "../../contexts/PendingMembers/PendingMembersContext";
interface Notification {
id: number;
content: string;
created_at: string | number;
pivot: { unread: number };
}
import Notification from "../../interfaces/notification.interface";
function Header() {