From 60336af2d7f3be4754d7253da568cc16c6fcb413 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 02:10:20 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/cases.$caseId.tsx | 51 ++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/src/routes/cases.$caseId.tsx b/src/routes/cases.$caseId.tsx index a04a1a7..fff7e58 100644 --- a/src/routes/cases.$caseId.tsx +++ b/src/routes/cases.$caseId.tsx @@ -137,28 +137,7 @@ function CaseDetail() { )} - - - Litigation - Status log - Documents - Time - Expenses - Invoices - {(data.client?.client_type === "hoa" || data.client?.client_type === "condo") && ( - Collections - )} - - - - - - - - {(data.client?.client_type === "hoa" || data.client?.client_type === "condo") && ( - - )} - +
@@ -170,6 +149,34 @@ function CaseDetail() { ); } +function CaseTabs({ data, caseId, canManage, load }: { data: any; caseId: string; canManage: boolean; load: () => void }) { + const [tab, setTab] = useState("litigation"); + return ( + + + Litigation + Status log + Documents + Time + Expenses + Invoices + {(data.client?.client_type === "hoa" || data.client?.client_type === "condo") && ( + Collections + )} + + + + + setTab("invoices")} /> + + + {(data.client?.client_type === "hoa" || data.client?.client_type === "condo") && ( + + )} + + ); +} + function SmallStat({ label, value }: { label: string; value: string }) { return (