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 <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-09-24 19:07:01 +07:00
parent a23225cad4
commit 46cb2266ea
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ import {
LayoutGrid, LayoutGrid,
CalendarDays, CalendarDays,
} from 'lucide-react'; } from 'lucide-react';
import { cn } from '@/lib/utils';
import { EmptyState as SharedEmptyState, type EmptyStateAction } from '@/components/EmptyState'; import { EmptyState as SharedEmptyState, type EmptyStateAction } from '@/components/EmptyState';
// ─── Accent colours ─────────────────────────────────────────────────────────── // ─── Accent colours ───────────────────────────────────────────────────────────

View file

@ -71,6 +71,7 @@ import {
PersonStanding, PersonStanding,
ArrowRight, ArrowRight,
} from 'lucide-react'; } from 'lucide-react';
import { cn } from '@/lib/utils';
import { EmptyState as SharedEmptyState } from '@/components/EmptyState'; import { EmptyState as SharedEmptyState } from '@/components/EmptyState';
import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar'; import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar';
import { ProBadge } from '@/components/ProBadge'; import { ProBadge } from '@/components/ProBadge';