mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-22 12:41:10 +10:00
fix: lint
This commit is contained in:
@ -4,7 +4,10 @@ import type { NotificationModel } from "~/prisma/client/models";
|
||||
const ws = new WebSocketHandler("/api/v1/notifications/ws");
|
||||
|
||||
export const useNotifications = () =>
|
||||
useState<Array<SerializeObject<NotificationModel>>>("notifications", () => []);
|
||||
useState<Array<SerializeObject<NotificationModel>>>(
|
||||
"notifications",
|
||||
() => [],
|
||||
);
|
||||
|
||||
ws.listen((e) => {
|
||||
const notification = JSON.parse(e) as SerializeObject<NotificationModel>;
|
||||
|
||||
Reference in New Issue
Block a user