fix: fix all eslint errors

This commit is contained in:
2024-09-12 16:35:37 +02:00
parent d1c7fac20d
commit 3c82f32f9d
5 changed files with 9 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import { lerpIcon } from "~/utils/icons";
const ICONS = ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"];
export const WaybarBatteryWidget = (props: { frequency: number }) => {
const [battery, setBattery] = useState(100);
const [battery] = useState(100);
useEffect(() => {
const interval = setInterval(() => {

View File

@@ -5,10 +5,10 @@ export const WaybarWeatherWidget = () => {
const [temperature, setTemperature] = useState<string>("??");
useEffect(() => {
fetch("https://wttr.in/Brest?format=j1")
void fetch("https://wttr.in/Brest?format=j1")
.then((response) => response.json())
.then((data) =>
setTemperature(data.current_condition[0].temp_C as string),
.then((data: { current_condition: Array<{ temp_C: string }> }) =>
setTemperature(data.current_condition[0].temp_C),
);
}, []);