Change the function to export function

This commit is contained in:
Alireza Adli 2023-10-05 12:55:19 -04:00
parent 5ac7bac38d
commit ae46ec1547

View File

@ -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