We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79df38d commit 15222fdCopy full SHA for 15222fd
soemi-woeb/src/App.js
@@ -6,7 +6,7 @@ function App() {
6
const [planet, setPlanet] = useState(null)
7
8
const handleRestCall = async () => {
9
- $("body").css("cursor", "progress");
+ document.body.style.cursor = 'wait';
10
try {
11
const temp = await getTemp();
12
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() {
17
} catch (error) {
18
console.log("error")
19
}finally{
20
- $("body").css("cursor", "default");
+ document.body.style.cursor = 'default'
21
}
22
};
23
0 commit comments