summaryrefslogtreecommitdiff
path: root/src/Map.tsx
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2022-09-01 09:31:33 +0300
committerYuval Adam <_@yuv.al>2022-09-01 09:31:33 +0300
commit43fff9d6f8e1b7ba38078804217bb98f6740af99 (patch)
tree61d11f08724f710096630aa81f2b43dbd30052e7 /src/Map.tsx
parentc5af7e2ee2fd84badb60cf2bab8b9fc341e9bdad (diff)
Fix default exports
Diffstat (limited to 'src/Map.tsx')
-rw-r--r--src/Map.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Map.tsx b/src/Map.tsx
index 62bebb2..7a49416 100644
--- a/src/Map.tsx
+++ b/src/Map.tsx
@@ -15,7 +15,7 @@ interface MapProps {
images: string[],
}
-function Map({ slider, images }: MapProps) {
+export function Map({ slider, images }: MapProps) {
const mapContainer = useRef(null);
const map = useRef<mapboxgl.Map>(null);
const [lng, setLng] = useState(35);
@@ -60,7 +60,7 @@ function Map({ slider, images }: MapProps) {
}} />
</div>
);
-
+}
// return (
// <Mapbox >
// {images.map((img, i) => {
@@ -93,6 +93,3 @@ function Map({ slider, images }: MapProps) {
// })}
// </Mapbox>
// );
-}
-
-export default Map;