diff --git a/src/pages/instances/InstanceDetailPanel.tsx b/src/pages/instances/InstanceDetailPanel.tsx index d750dc6a8d..16939641bb 100644 --- a/src/pages/instances/InstanceDetailPanel.tsx +++ b/src/pages/instances/InstanceDetailPanel.tsx @@ -14,10 +14,9 @@ import usePanelParams from "util/usePanelParams"; import { useNotify } from "context/notify"; import InstanceStateActions from "pages/instances/actions/InstanceStateActions"; import InstanceLink from "pages/instances/InstanceLink"; -import { getIpAddressElements } from "util/networks"; -import ExpandableList from "../../components/ExpandableList"; import ItemName from "components/ItemName"; import DetailPanel from "components/DetailPanel"; +import InstanceIps from "pages/instances/InstanceIps"; const RECENT_SNAPSHOT_LIMIT = 5; @@ -40,9 +39,6 @@ const InstanceDetailPanel: FC = () => { notify.failure("Loading instance failed", error); } - const ip4Addresses = instance ? getIpAddressElements(instance, "inet") : []; - const ip6Addresses = instance ? getIpAddressElements(instance, "inet6") : []; - const networkDevices = Object.values(instance?.expanded_devices ?? {}).filter( isNicDevice ); @@ -114,21 +110,13 @@ const InstanceDetailPanel: FC = () => {