Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
refactor(web): derive NotificationType from API contract in NotificationItem
Richie McIlroyec6eef3b04e6
diff --git a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsxindex e58dd8c20..17d33ac1a 100644--- a/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx+++ b/apps/web/app/(org)/dashboard/_components/Notifications/NotificationItem.tsx@@ -7,13 +7,14 @@ import moment from "moment";import Link from "next/link";import { markAsRead } from "@/actions/notifications/mark-as-read";import { SignedImageUrl } from "@/components/SignedImageUrl";-import type { NotificationType } from "@/lib/Notification";type NotificationItemProps = {notification: APINotification;className?: string;};+type NotificationType = APINotification["type"];+const descriptionMap: Record<NotificationType, string> = {comment: `commented on your video`,reply: `replied to your comment`,