Ready to implement Virtual Machines management

This commit is contained in:
Pierre HUBERT 2024-05-04 09:12:51 +02:00
parent c7306bdd55
commit a4a3b36c4e
3 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import { AuthRouteWidget } from "./routes/AuthRouteWidget";
import { AsyncWidget } from "./widgets/AsyncWidget";
import { MainMenu } from "./widgets/MainMenu";
import { SystemInfoWidget } from "./widgets/SystemInfoWidget";
import { VirtualMachinesWidget } from "./widgets/VirtualMachinesWidget";
const useStyles = makeStyles({
title: typographyStyles.title2,
@ -39,6 +40,7 @@ function AppInner(): React.ReactElement {
<span className={styles.title}>VirtWebRemote</span>
<MainMenu />
</div>
<VirtualMachinesWidget />
<SystemInfoWidget />
</div>
);

View File

@ -58,7 +58,7 @@ function SystemInfoWidgetInner(): React.ReactElement {
console.error(e);
toast("Error", "Failed to refresh system status!", "error");
}
}, 1500);
}, 5000);
return () => clearInterval(interval);
});

View File

@ -0,0 +1,5 @@
import { SectionContainer } from "./SectionContainer";
export function VirtualMachinesWidget(): React.ReactElement {
return <SectionContainer title="Virtual machines">TODO</SectionContainer>;
}