Skip to content

Commit

Permalink
Merge pull request #19 from Project-Unifest/hotfix/add-drag-and-drop-…
Browse files Browse the repository at this point in the history
…to-map

LGTM
  • Loading branch information
algoORgoal committed May 15, 2024
2 parents 337d13f + c7d1bd0 commit 5259418
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/widgets/add-booth/ui/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function GoogleMap() {
lng: CampusPosition.longitude,
}}
defaultZoom={17}
gestureHandling="none"
gestureHandling="cooperative"
disableDefaultUI
onClick={handleMapClick}
mapId={process.env.NEXT_PUBLIC_GOOGLE_MAPS_ID}
Expand Down
5 changes: 2 additions & 3 deletions src/widgets/booth/ui/AddMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ export function AddMap({ boothId }: { boothId: number }) {
<APIProvider apiKey={apiKey}>
<Map
className="h-screen w-full"
center={{
defaultCenter={{
lat: CampusPosition.latitude,
lng: CampusPosition.longitude,
}}
defaultZoom={17}
gestureHandling="none"
disableDefaultUI
gestureHandling="cooperative"
onClick={handleMapClick}
mapId={process.env.NEXT_PUBLIC_GOOGLE_MAPS_ID}
>
Expand Down
5 changes: 2 additions & 3 deletions src/widgets/booth/ui/EditMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ export function EditMap({ boothId }: Readonly<{ boothId: string }>) {
<APIProvider apiKey={apiKey}>
<Map
className="h-screen w-full"
center={{
defaultCenter={{
lat: CampusPosition.latitude,
lng: CampusPosition.longitude,
}}
defaultZoom={17}
gestureHandling="none"
disableDefaultUI
gestureHandling="cooperative"
onClick={handleMapClick}
mapId={process.env.NEXT_PUBLIC_GOOGLE_MAPS_ID}
>
Expand Down

1 comment on commit 5259418

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for unifest-web-deployment ready!

✅ Preview
https://unifest-web-deployment-3s7q8meg8-algoorgoals-projects.vercel.app

Built with commit 5259418.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.