WIP ESLint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-28 12:12:11 +01:00
parent 9a905e83f7
commit 3bf8859ff9
20 changed files with 129 additions and 70 deletions

View File

@@ -31,13 +31,19 @@ export function VMStatusWidget(p: {
}
};
const changedAction = () => { setState(undefined); };
const changedAction = () => {
setState(undefined);
};
React.useEffect(() => {
refresh();
const i = setInterval(() => refresh(), 3000);
const i = setInterval(() => {
refresh();
}, 3000);
return () => { clearInterval(i); };
return () => {
clearInterval(i);
};
});
if (state === undefined)
@@ -59,6 +65,7 @@ export function VMStatusWidget(p: {
icon={<PersonalVideoIcon />}
tooltip="Graphical remote control over the VM"
performAction={async () => navigate(p.vm.VNCURL)}
// eslint-disable-next-line @typescript-eslint/no-empty-function
onExecuted={() => {}}
/>
)