diff --git a/src/app/student/map/_components/BoothListItem.tsx b/src/app/student/map/_components/BoothListItem.tsx index 7f7dfe4..705b7f6 100644 --- a/src/app/student/map/_components/BoothListItem.tsx +++ b/src/app/student/map/_components/BoothListItem.tsx @@ -1,8 +1,7 @@ "use client" -import { LocationId } from "@/app/student/map/lib/locations" +import { LocationId, locations } from "@/app/student/map/lib/locations" import { Card } from "@/components/ui/card" import { cn } from "@/lib/utils" -import { MapIcon } from "lucide-react" import Image from "next/image" import { Booth, BoothID } from "../lib/booths" @@ -12,7 +11,8 @@ export function BoothListItem({ onBoothNavigate, onMouseEnter, onMouseLeave, - closeDrawer + closeDrawer, + currentLocationId }: { booth: Booth onBoothClick: (boothId: BoothID) => void @@ -44,7 +44,7 @@ export function BoothListItem({ {} )} onClick={() => onBoothClick(booth.id)}> -
+
{logoSrc ? (
)} -
{booth.exhibitor.name}
- {/*
- {locations.find(loc => loc.id === booth.location)?.label} -
*/} +
+

{booth.exhibitor.name}

+
+ {locations.find(loc => loc.id === booth.location)?.label} +
+
{ event.stopPropagation() event.preventDefault() closeDrawer() - }}> -
- -
-
+ }}>
diff --git a/src/app/student/map/_components/Sidebar.tsx b/src/app/student/map/_components/Sidebar.tsx index d0877b4..6c030fa 100644 --- a/src/app/student/map/_components/Sidebar.tsx +++ b/src/app/student/map/_components/Sidebar.tsx @@ -38,6 +38,7 @@ import { EraserIcon, FilterIcon, MapIcon, + MapPinIcon, SearchIcon, X, XIcon @@ -114,11 +115,35 @@ export default function Sidebar({ return null } return ( - + + + +
+ +
+ + }>
-