mobile v favorite, unit page

This commit is contained in:
2024-07-31 13:24:32 +05:00
parent cb6a603d01
commit 829804d733
5 changed files with 8 additions and 12 deletions
@@ -6,8 +6,6 @@ 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";
import WeatherWidget from "./WeatherWidget";
const Map = () => {
@@ -21,12 +19,6 @@ const Map = () => {
};
});
useEffect(() => {
getWeather().then((data) => {
console.log(data);
});
}, []);
return (
<div className="relative">
<TransformWrapper
@@ -23,7 +23,7 @@ const WeatherWidget = () => {
const temp = Math.round(data[0].main.temp);
setTemperature(temp);
});
}, []);
});
return (
<div className="absolute top-[73.5px] left-4 bg-black rounded-2xl z-50 text-white bg-opacity-40 w-[144px] pt-4">