useAutoRequest tidy up

This commit is contained in:
proddy
2024-08-11 10:40:11 +02:00
parent 962d007d91
commit f5968412a0
5 changed files with 60 additions and 87 deletions

View File

@@ -1,5 +1,3 @@
import { useEffect } from 'react';
import {
Body,
Cell,
@@ -67,13 +65,6 @@ const SystemActivity = () => {
`
});
useEffect(() => {
const timer = setInterval(() => loadData(), 30000);
return () => {
clearInterval(timer);
};
});
const showName = (id: number) => {
const name: keyof Translation['STATUS_NAMES'] = id;
return LL.STATUS_NAMES[name]();