From a95676ea6ac0fdddfbe2b39adb153cf6f46e796c Mon Sep 17 00:00:00 2001 From: "diana.dolgolyova" Date: Tue, 24 Mar 2026 19:00:12 +0300 Subject: [PATCH] fix: dashboard status counts always set filter (no toggle), hover underline - Clicking a status count always sets that filter, even when navigating to a different tab (previously toggled off if same filter was active) - Click card background to reset filter to 'all' - Hover underline on status count links --- src/app/admin/bookings/page.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/admin/bookings/page.tsx b/src/app/admin/bookings/page.tsx index 4c8aa38..56dccfc 100644 --- a/src/app/admin/bookings/page.tsx +++ b/src/app/admin/bookings/page.tsx @@ -687,8 +687,8 @@ function DashboardSummary({ statusFilter, onNavigate, onFilter }: {
{tc.new > 0 && ( <> - { e.stopPropagation(); onNavigate(c.tab); onFilter(statusFilter === "new" ? "all" : "new"); }}> + { e.stopPropagation(); onNavigate(c.tab); onFilter("new"); }}> {tc.new} новых @@ -697,8 +697,8 @@ function DashboardSummary({ statusFilter, onNavigate, onFilter }: { {tc.contacted > 0 && ( <> {tc.new > 0 && ·} - { e.stopPropagation(); onNavigate(c.tab); onFilter(statusFilter === "contacted" ? "all" : "contacted"); }}> + { e.stopPropagation(); onNavigate(c.tab); onFilter("contacted"); }}> {tc.contacted} в работе @@ -707,8 +707,8 @@ function DashboardSummary({ statusFilter, onNavigate, onFilter }: { {tc.confirmed > 0 && ( <> {(tc.new > 0 || tc.contacted > 0) && ·} - { e.stopPropagation(); onNavigate(c.tab); onFilter(statusFilter === "confirmed" ? "all" : "confirmed"); }}> + { e.stopPropagation(); onNavigate(c.tab); onFilter("confirmed"); }}> {tc.confirmed} подтв. @@ -717,8 +717,8 @@ function DashboardSummary({ statusFilter, onNavigate, onFilter }: { {tc.declined > 0 && ( <> {(tc.new > 0 || tc.contacted > 0 || tc.confirmed > 0) && ·} - { e.stopPropagation(); onNavigate(c.tab); onFilter(statusFilter === "declined" ? "all" : "declined"); }}> + { e.stopPropagation(); onNavigate(c.tab); onFilter("declined"); }}> {tc.declined} отказ