diff --git a/components/NotificationItem.vue b/components/NotificationItem.vue index 2606643..b81ee30 100644 --- a/components/NotificationItem.vue +++ b/components/NotificationItem.vue @@ -47,7 +47,9 @@ import { XMarkIcon } from "@heroicons/vue/24/solid"; import type { SerializeObject } from "nitropack"; import type { NotificationModel } from "~/prisma/client/models"; -const props = defineProps<{ notification: SerializeObject }>(); +const props = defineProps<{ + notification: SerializeObject; +}>(); async function deleteMe() { await $dropFetch(`/api/v1/notifications/:id`, { diff --git a/components/UserHeader/NotificationWidgetPanel.vue b/components/UserHeader/NotificationWidgetPanel.vue index 5a7e49c..7018c66 100644 --- a/components/UserHeader/NotificationWidgetPanel.vue +++ b/components/UserHeader/NotificationWidgetPanel.vue @@ -49,5 +49,7 @@ import type { SerializeObject } from "nitropack"; import type { NotificationModel } from "~/prisma/client/models"; -const props = defineProps<{ notifications: Array> }>(); +const props = defineProps<{ + notifications: Array>; +}>(); diff --git a/composables/notifications.ts b/composables/notifications.ts index 543ac77..637fe7e 100644 --- a/composables/notifications.ts +++ b/composables/notifications.ts @@ -4,7 +4,10 @@ import type { NotificationModel } from "~/prisma/client/models"; const ws = new WebSocketHandler("/api/v1/notifications/ws"); export const useNotifications = () => - useState>>("notifications", () => []); + useState>>( + "notifications", + () => [], + ); ws.listen((e) => { const notification = JSON.parse(e) as SerializeObject; diff --git a/pages/account/notifications.vue b/pages/account/notifications.vue index a1fd539..04b83f1 100644 --- a/pages/account/notifications.vue +++ b/pages/account/notifications.vue @@ -26,7 +26,6 @@ {{ $t("account.notifications.clear") }} -