feat: improve navigation in footer

This commit is contained in:
2025-02-17 23:06:18 +01:00
parent 9647e890f6
commit df94b151a6
3 changed files with 15 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
import { useEffect, useState } from "react";
import { apiAuth, baseUrl, token } from "./api";
import useAuthContext from "./AuthContext";
import { apiAuth } from "./api";
//const debounce = <T extends (...args: any[]) => void>(
// func: T,
@@ -59,7 +58,6 @@ export default function Analysis() {
const [showControlPanel, setShowControlPanel] = useState(false);
const [loading, setLoading] = useState(true);
const auth = useAuthContext();
// Function to generate and fetch the graph image
async function loadImage() {
setLoading(true);
@@ -68,7 +66,7 @@ export default function Analysis() {
setImage(data.image);
setLoading(false);
}).catch((e) => {
auth.doLogin();
console.log("best to just reload... ", e);
})
}