From 46cb2266ea352e01480d38b4e270080dfcc536f6 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 24 Sep 2026 19:07:01 +0700 Subject: [PATCH] fix: restore accidentally-removed cn import in LabPage and EventsPage The empty-state migration removed the `cn` import from both files on the mistaken belief it was unused. In fact each file still uses cn() ~22 times (ProfileCard, FilterDrawer, event cards, etc.), so /lab and /events crashed at runtime with "cn is not defined" and hit the route error boundary. Re-added `import { cn } from '@/lib/utils'` to both. Co-authored-by: shakespeare.diy --- src/pages/EventsPage.tsx | 1 + src/pages/LabPage.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pages/EventsPage.tsx b/src/pages/EventsPage.tsx index 58050ce..3027b04 100644 --- a/src/pages/EventsPage.tsx +++ b/src/pages/EventsPage.tsx @@ -44,6 +44,7 @@ import { LayoutGrid, CalendarDays, } from 'lucide-react'; +import { cn } from '@/lib/utils'; import { EmptyState as SharedEmptyState, type EmptyStateAction } from '@/components/EmptyState'; // ─── Accent colours ─────────────────────────────────────────────────────────── diff --git a/src/pages/LabPage.tsx b/src/pages/LabPage.tsx index 2bfb28e..0e936c5 100644 --- a/src/pages/LabPage.tsx +++ b/src/pages/LabPage.tsx @@ -71,6 +71,7 @@ import { PersonStanding, ArrowRight, } from 'lucide-react'; +import { cn } from '@/lib/utils'; import { EmptyState as SharedEmptyState } from '@/components/EmptyState'; import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar'; import { ProBadge } from '@/components/ProBadge';