From 1e8bf782caf0fb9da9ac94d040730e241e5d17b9 Mon Sep 17 00:00:00 2001 From: smanylov Date: Wed, 29 Apr 2026 15:20:57 +0700 Subject: [PATCH] remove date column add claims and complaint columns --- src/app/ui/violations/violations-table.tsx | 35 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/src/app/ui/violations/violations-table.tsx b/src/app/ui/violations/violations-table.tsx index 4ea8deb..e49a3ac 100644 --- a/src/app/ui/violations/violations-table.tsx +++ b/src/app/ui/violations/violations-table.tsx @@ -22,6 +22,8 @@ interface FileViolation { status: string; supportId: number; violationCount: number; + countComplaint: number; + countLawCase: number; } interface ViolationData { @@ -233,10 +235,10 @@ export default function ViolationsTable() { ), }, { - accessorKey: 'latestViolationDate', + accessorKey: 'countComplaint', header: ({ column }) => (
- {t('date')} + {t('complaint')} +
+ ), + cell: ({ row }) => ( +
+ {row.original.countLawCase}
), },