diff --git a/src/app/student/map/_components/MainView.tsx b/src/app/student/map/_components/MainView.tsx index 49b8c52..018c07f 100644 --- a/src/app/student/map/_components/MainView.tsx +++ b/src/app/student/map/_components/MainView.tsx @@ -14,17 +14,16 @@ import { import { useState } from "react" import { BoothID, BoothMap } from "../lib/booths" import { LocationId, locations } from "../lib/locations" +import { Button } from "@/components/ui/button" export default function MainView({ boothsByLocation, boothsById, - exhibitorsById, - editorMode = false + exhibitorsById }: { boothsByLocation: Map boothsById: BoothMap exhibitorsById: Map - editorMode?: boolean }) { const [locationId, setLocationId] = useState("nymble/1") const location = locations.find(loc => loc.id === locationId)! @@ -33,6 +32,8 @@ export default function MainView({ const [activeBoothId, setActiveBoothId] = useState(null) const [hoveredBoothId, setHoveredBoothId] = useState(null) + const [editorMode, setEditorMode] = useState(false) + return (
{!editorMode ? ( @@ -63,10 +64,22 @@ export default function MainView({ /> )} + {process.env.NODE_ENV === "development" && } +
) + function EditorToggle() { + return ( + + ) + } + function SelectLocation() { return (