Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(web): use contract-derived types for notification filter count

Richie McIlroye77a15bf16ee
diff --git a/apps/web/app/(org)/dashboard/_components/Notifications/FilterTabs.tsx b/apps/web/app/(org)/dashboard/_components/Notifications/FilterTabs.tsx
index f11857ccd..024278639 100644
--- a/apps/web/app/(org)/dashboard/_components/Notifications/FilterTabs.tsx
+++ b/apps/web/app/(org)/dashboard/_components/Notifications/FilterTabs.tsx
@@ -1,14 +1,13 @@
import clsx from "clsx";
import { motion } from "framer-motion";
import { useEffect, useMemo, useRef } from "react";
-import type { NotificationType } from "@/lib/Notification";
import { FilterLabels, Filters, type FilterType } from "./Filter";
type FilterTabsProps = {
activeFilter: FilterType;
setActiveFilter: (filter: FilterType) => void;
loading: boolean;
- count?: Record<NotificationType, number>;
+ count?: Record<Exclude<FilterType, "all">, number>;
};
export const FilterTabs = ({