weather get request

This commit is contained in:
2024-07-29 15:44:25 +05:00
parent bf7fae6403
commit 354d0e7d2d
3 changed files with 85 additions and 2 deletions
@@ -6,6 +6,8 @@ import { markers } from "../../../consts/markers";
import useMarker from "../../../store/useMarker";
import ZoomControlls from "./ZoomControlls";
import { Clouds } from "./Clouds";
import { getWeather } from "../../../api/weather";
import { useEffect } from "react";
const Map = () => {
const { hoveredMarker } = useMarker();
@@ -18,6 +20,12 @@ const Map = () => {
};
});
useEffect(() => {
getWeather().then((data) => {
console.log(data);
});
}, []);
return (
<div className="relative">
<TransformWrapper