frontend: fix linted errors

This commit is contained in:
Kentai Radiquum 2024-04-23 18:52:41 +05:00
parent 9e75a0783c
commit 58ed4007df
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
9 changed files with 46 additions and 14 deletions

View file

@ -34,6 +34,7 @@ export default function Home() {
} else {
setList("last");
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
async function fetchData(list, page = 0) {
@ -55,12 +56,14 @@ export default function Home() {
setPage(0);
fetchData(list); // Call fetchData here
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [list]);
useEffect(() => {
if (list && releases) {
fetchData(list, page); // Use fetchData for pagination
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);
const chips = [