From f890cba5a4add2cd5dff90835d9754f98792ae82 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Wed, 3 Jan 2024 00:12:55 +0100 Subject: [PATCH] Organize imports --- .../src/widgets/net/NetworkDetails.tsx | 7 ++--- .../src/widgets/vms/VMDetails.tsx | 28 +++++++++---------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/virtweb_frontend/src/widgets/net/NetworkDetails.tsx b/virtweb_frontend/src/widgets/net/NetworkDetails.tsx index 2476164..8776144 100644 --- a/virtweb_frontend/src/widgets/net/NetworkDetails.tsx +++ b/virtweb_frontend/src/widgets/net/NetworkDetails.tsx @@ -1,20 +1,19 @@ -import { Box, Button, Checkbox, Grid, Paper, Tab, Tabs } from "@mui/material"; +import { Button, Checkbox, Grid } from "@mui/material"; import React from "react"; +import { useNavigate } from "react-router-dom"; import { IpConfig, NetworkApi, NetworkInfo } from "../../api/NetworksApi"; import { ServerApi } from "../../api/ServerApi"; import { useAlert } from "../../hooks/providers/AlertDialogProvider"; import { useConfirm } from "../../hooks/providers/ConfirmDialogProvider"; import { useSnackbar } from "../../hooks/providers/SnackbarProvider"; import { AsyncWidget } from "../AsyncWidget"; -import { CheckboxInput } from "../forms/CheckboxInput"; +import { TabsWidget } from "../TabsWidget"; import { EditSection } from "../forms/EditSection"; import { IPInput } from "../forms/IPInput"; import { ResAutostartInput } from "../forms/ResAutostartInput"; import { SelectInput } from "../forms/SelectInput"; import { TextInput } from "../forms/TextInput"; import { DHCPHostReservations } from "./DHCPHostReservations"; -import { useNavigate } from "react-router-dom"; -import { TabsWidget } from "../TabsWidget"; interface DetailsProps { net: NetworkInfo; diff --git a/virtweb_frontend/src/widgets/vms/VMDetails.tsx b/virtweb_frontend/src/widgets/vms/VMDetails.tsx index 2851786..aff3791 100644 --- a/virtweb_frontend/src/widgets/vms/VMDetails.tsx +++ b/virtweb_frontend/src/widgets/vms/VMDetails.tsx @@ -1,26 +1,26 @@ -import { Box, Button, Grid, Tab, Tabs } from "@mui/material"; +import { Button, Grid } from "@mui/material"; import React from "react"; +import { useNavigate } from "react-router-dom"; import { validate as validateUUID } from "uuid"; import { IsoFile, IsoFilesApi } from "../../api/IsoFilesApi"; +import { NWFilter, NWFilterApi } from "../../api/NWFilterApi"; +import { NetworkApi, NetworkInfo } from "../../api/NetworksApi"; import { ServerApi } from "../../api/ServerApi"; import { VMApi, VMInfo } from "../../api/VMApi"; -import { AsyncWidget } from "../AsyncWidget"; -import { CheckboxInput } from "../forms/CheckboxInput"; -import { EditSection } from "../forms/EditSection"; -import { SelectInput } from "../forms/SelectInput"; -import { TextInput } from "../forms/TextInput"; -import { VMDisksList } from "../forms/VMDisksList"; -import { VMSelectIsoInput } from "../forms/VMSelectIsoInput"; -import { VMScreenshot } from "./VMScreenshot"; -import { ResAutostartInput } from "../forms/ResAutostartInput"; -import { VMNetworksList } from "../forms/VMNetworksList"; -import { NetworkApi, NetworkInfo } from "../../api/NetworksApi"; -import { NWFilterApi, NWFilter } from "../../api/NWFilterApi"; -import { useNavigate } from "react-router-dom"; import { useAlert } from "../../hooks/providers/AlertDialogProvider"; import { useConfirm } from "../../hooks/providers/ConfirmDialogProvider"; import { useSnackbar } from "../../hooks/providers/SnackbarProvider"; +import { AsyncWidget } from "../AsyncWidget"; import { TabsWidget } from "../TabsWidget"; +import { CheckboxInput } from "../forms/CheckboxInput"; +import { EditSection } from "../forms/EditSection"; +import { ResAutostartInput } from "../forms/ResAutostartInput"; +import { SelectInput } from "../forms/SelectInput"; +import { TextInput } from "../forms/TextInput"; +import { VMDisksList } from "../forms/VMDisksList"; +import { VMNetworksList } from "../forms/VMNetworksList"; +import { VMSelectIsoInput } from "../forms/VMSelectIsoInput"; +import { VMScreenshot } from "./VMScreenshot"; interface DetailsProps { vm: VMInfo;