From ae46ec1547d342a423d13c5ffab0aa295a4f5076 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Thu, 5 Oct 2023 12:55:19 -0400 Subject: [PATCH] Change the function to export function --- app/src/frontend/map/layers/city-base-map-layer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/frontend/map/layers/city-base-map-layer.tsx b/app/src/frontend/map/layers/city-base-map-layer.tsx index 185beb33..89b199e5 100644 --- a/app/src/frontend/map/layers/city-base-map-layer.tsx +++ b/app/src/frontend/map/layers/city-base-map-layer.tsx @@ -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