Change the function to export function
This commit is contained in:
parent
5ac7bac38d
commit
ae46ec1547
@ -7,7 +7,7 @@ mapboxgl.accessToken = 'pk.eyJ1IjoiYWxpLWFkbGkiLCJhIjoiY2xuM2JtYjV1MGE5djJrb2d5O
|
||||
/**
|
||||
* Component to display a Mapbox map.
|
||||
*/
|
||||
function CityMap() {
|
||||
export function CityMap() {
|
||||
useEffect(() => {
|
||||
const map = new mapboxgl.Map({
|
||||
container: 'map', // container ID
|
||||
|
Loading…
Reference in New Issue
Block a user