diff --git a/frontend/src/App.js b/frontend/src/App.js index d56a814632..18b8e56ac1 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -1,5 +1,6 @@ import "./app.css"; -import ReactMapGL, { Marker, Popup } from "react-map-gl"; +import "mapbox-gl/dist/mapbox-gl.css"; +import Map, { Marker, Popup } from "react-map-gl"; import { useEffect, useState } from "react"; import { Room, Star, StarBorder } from "@material-ui/icons"; import axios from "axios"; @@ -30,7 +31,7 @@ function App() { }; const handleAddClick = (e) => { - const [longitude, latitude] = e.lngLat; + const {lng: longitude, lat: latitude} = e.lngLat; setNewPlace({ lat: latitude, long: longitude, @@ -75,12 +76,11 @@ function App() { }; return ( -