From 15222fdca1a001e88553d3b375989ba6de7187ef Mon Sep 17 00:00:00 2001 From: Flurin Date: Mon, 29 Jan 2024 20:53:51 +0100 Subject: [PATCH] fix --- soemi-woeb/src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soemi-woeb/src/App.js b/soemi-woeb/src/App.js index 68fcd2e..fb2c663 100644 --- a/soemi-woeb/src/App.js +++ b/soemi-woeb/src/App.js @@ -6,7 +6,7 @@ function App() { const [planet, setPlanet] = useState(null) const handleRestCall = async () => { - $("body").css("cursor", "progress"); + document.body.style.cursor = 'wait'; try { const temp = await getTemp(); const imgRes = await fetch(`http://sömi-weather.ch/api/get-the-star-wars-planets-mapping-for-the-current-temperature-completely-and-utterly-accurate?temp=${temp}`) @@ -17,7 +17,7 @@ function App() { } catch (error) { console.log("error") }finally{ - $("body").css("cursor", "default"); + document.body.style.cursor = 'default' } };