diff --git a/src/app/admin/bookings/page.tsx b/src/app/admin/bookings/page.tsx index a359122..b8b9455 100644 --- a/src/app/admin/bookings/page.tsx +++ b/src/app/admin/bookings/page.tsx @@ -594,7 +594,8 @@ function countByStatus(items: { status: string }[]): TabCounts { } -function DashboardSummary({ onNavigate, onFilter }: { +function DashboardSummary({ refreshTrigger, onNavigate, onFilter }: { + refreshTrigger: number; onNavigate: (tab: Tab) => void; onFilter: (f: BookingFilter) => void; }) { @@ -636,7 +637,8 @@ function DashboardSummary({ onNavigate, onFilter }: { remindersCancelled: upcoming.filter((r) => r.reminderStatus === "cancelled").length, }); }).catch(() => {}); - }, []); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [refreshTrigger]); if (!counts) return null; @@ -898,7 +900,7 @@ function BookingsPageInner() { ) : ( <> {/* Dashboard — what needs attention */} - + {/* Tabs */}