diff --git a/src/app/portfolio/[slug]/(portfolio)/your-projects/live/LiveTracker.tsx b/src/app/portfolio/[slug]/(portfolio)/your-projects/live/LiveTracker.tsx index 8f73aad..824a1cb 100644 --- a/src/app/portfolio/[slug]/(portfolio)/your-projects/live/LiveTracker.tsx +++ b/src/app/portfolio/[slug]/(portfolio)/your-projects/live/LiveTracker.tsx @@ -9,7 +9,13 @@ import { TabsTrigger, } from "@/app/shadcn_components/ui/tabs"; import { Card, CardContent } from "@/app/shadcn_components/ui/card"; -import { BarChart2, Table2, FolderOpen, Wrench, AlertTriangle } from "lucide-react"; +import { + BarChart2, + Table2, + FolderOpen, + Wrench, + AlertTriangle, +} from "lucide-react"; import DrillDownTable from "./DrillDownTable"; import PropertyTable from "./PropertyTable"; import DocumentTable from "./DocumentTable"; @@ -40,9 +46,9 @@ export default function LiveTracker({ userEmail, }: LiveTrackerProps) { // ── Tab state ──────────────────────────────────────────────────────── - const [activeTab, setActiveTab] = useState<"analytics" | "properties" | "documents" | "measures">( - "analytics", - ); + const [activeTab, setActiveTab] = useState< + "analytics" | "properties" | "documents" | "measures" + >("analytics"); // ── Project selector (shared across both tabs) ─────────────────────── const projectCodes = projects.map((p) => p.projectCode); @@ -81,7 +87,10 @@ export default function LiveTracker({ setOpenTable({ stage, data: filteredDeals, - columns: (columns || ["dealname", "landlordPropertyId"]) as (keyof ClassifiedDeal)[], + columns: (columns || [ + "dealname", + "landlordPropertyId", + ]) as (keyof ClassifiedDeal)[], columnLabels: (columnLabels || { dealname: "Address Ref.", landlordPropertyId: "Property Ref.", @@ -90,7 +99,11 @@ export default function LiveTracker({ }); }; - const handleOpenDrawer = (uprn: string | null, landlordPropertyId: string | null, dealname: string | null) => { + const handleOpenDrawer = ( + uprn: string | null, + landlordPropertyId: string | null, + dealname: string | null, + ) => { setDrawerState({ open: true, uprn, landlordPropertyId, dealname }); }; @@ -108,7 +121,11 @@ export default function LiveTracker({