Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(web): exclude anon_view from notification filter tabs

Richie McIlroyf4d6cff9eb09
diff --git a/apps/web/app/(org)/dashboard/_components/Notifications/Filter.ts b/apps/web/app/(org)/dashboard/_components/Notifications/Filter.ts
index 148578bc2..8e0955826 100644
--- a/apps/web/app/(org)/dashboard/_components/Notifications/Filter.ts
+++ b/apps/web/app/(org)/dashboard/_components/Notifications/Filter.ts
@@ -1,6 +1,8 @@
-import type { NotificationType } from "@/lib/Notification";
+import type { Notification } from "@cap/web-api-contract";
-export type FilterType = "all" | NotificationType;
+type NotificationType = Notification["type"];
+
+export type FilterType = "all" | Exclude<NotificationType, "anon_view">;
export const Filters: Array<FilterType> = [
"all",
@@ -16,7 +18,6 @@ export const FilterLabels: Record<FilterType, string> = {
reply: "Replies",
view: "Views",
reaction: "Reactions",
- anon_view: "Views",
};
export const matchNotificationFilter = (