Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AmiyaSX committed Oct 26, 2024
1 parent 3981b57 commit 544d548
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/student/map/_components/MapComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
symbolLayerStyle
} from "../lib/config"
import { BoothMarker } from "./BoothMarker"
// import debounce from "lodash.debounce"

export function MapComponent({
boothsById,
Expand All @@ -51,10 +50,6 @@ export function MapComponent({

const [markerScale, setMarkerScale] = useState(1)

// const debouncedSetHoveredBoothId = debounce(id => {
// setHoveredBoothId(id)
// }, 100)

// Fly to location center on change
useEffect(() => {
const { longitude, latitude, zoom } = location.center
Expand Down Expand Up @@ -115,7 +110,7 @@ export function MapComponent({
}
}

// avoid delays in booth switching
// Avoid delays in booth switching
function onBoothMouseMove(e: MapLayerMouseEvent) {
const feature = e.features?.[0] as GeoJsonBooth | undefined
if (feature) {
Expand Down

0 comments on commit 544d548

Please sign in to comment.