From 1ef2cc227a11ab356806b69ea93400d867493c51 Mon Sep 17 00:00:00 2001 From: smanylov Date: Fri, 8 May 2026 15:31:41 +0700 Subject: [PATCH] remov olden that month filter for violation table --- src/app/ui/violations/violations-table.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/app/ui/violations/violations-table.tsx b/src/app/ui/violations/violations-table.tsx index e49a3ac..3aebdef 100644 --- a/src/app/ui/violations/violations-table.tsx +++ b/src/app/ui/violations/violations-table.tsx @@ -68,12 +68,6 @@ export default function ViolationsTable() { monthAgo.setHours(0, 0, 0, 0); return { start_date: formatDateTimeForAPI(monthAgo), end_date }; } - case 'older': { - const monthAgo = new Date(now); - monthAgo.setMonth(monthAgo.getMonth() - 1); - monthAgo.setHours(0, 0, 0, 0); - return { end_date: formatDateTimeForAPI(monthAgo) }; - } default: return {}; } @@ -366,8 +360,6 @@ export default function ViolationsTable() { return t('for-a-week'); case 'month': return t('for-a-month'); - case 'older': - return t('older-than-a-month'); default: return t('today'); } @@ -378,7 +370,6 @@ export default function ViolationsTable() {
  • {t('today')}
  • {t('for-a-week')}
  • {t('for-a-month')}
  • -
  • {t('older-than-a-month')}