mobile v favorite, unit page
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user