@@ -18,14 +18,12 @@ import {setHeaderBreadcrumbs} from '../../store/reducers/header/header';
1818import { getClusterInfo } from '../../store/reducers/cluster/cluster' ;
1919import { getClusterNodes } from '../../store/reducers/clusterNodes/clusterNodes' ;
2020import { parseNodesToVersionsValues , parseVersionsToVersionToColorMap } from '../../utils/versions' ;
21- import { useAutofetcher , useSetting , useTypedSelector } from '../../utils/hooks' ;
22- import { USE_BACKEND_PARAMS_FOR_TABLES_KEY } from '../../utils/constants' ;
21+ import { useAutofetcher , useTypedSelector } from '../../utils/hooks' ;
2322
2423import { InternalLink } from '../../components/InternalLink' ;
2524import { Tenants } from '../Tenants/Tenants' ;
26- import { Nodes } from '../Nodes/Nodes' ;
27- import { VirtualNodes } from '../Nodes/VirtualNodes' ;
28- import { Storage } from '../Storage/Storage' ;
25+ import { StorageWrapper } from '../Storage/StorageWrapper' ;
26+ import { NodesWrapper } from '../Nodes/NodesWrapper' ;
2927import { Versions } from '../Versions/Versions' ;
3028
3129import { ClusterInfo } from './ClusterInfo/ClusterInfo' ;
@@ -55,8 +53,6 @@ function Cluster({
5553 const match = useRouteMatch < { activeTab : string } > ( routes . cluster ) ;
5654 const { activeTab = clusterTabsIds . tenants } = match ?. params || { } ;
5755
58- const [ useVirtualNodes ] = useSetting < boolean > ( USE_BACKEND_PARAMS_FOR_TABLES_KEY ) ;
59-
6056 const location = useLocation ( ) ;
6157 const queryParams = qs . parse ( location . search , {
6258 ignoreQueryPrefix : true ,
@@ -111,17 +107,20 @@ function Cluster({
111107 return < Tenants additionalTenantsProps = { additionalTenantsProps } /> ;
112108 }
113109 case clusterTabsIds . nodes : {
114- return useVirtualNodes ? (
115- < VirtualNodes
110+ return (
111+ < NodesWrapper
116112 parentContainer = { container . current }
117113 additionalNodesProps = { additionalNodesProps }
118114 />
119- ) : (
120- < Nodes additionalNodesProps = { additionalNodesProps } />
121115 ) ;
122116 }
123117 case clusterTabsIds . storage : {
124- return < Storage additionalNodesProps = { additionalNodesProps } /> ;
118+ return (
119+ < StorageWrapper
120+ parentContainer = { container . current }
121+ additionalNodesProps = { additionalNodesProps }
122+ />
123+ ) ;
125124 }
126125 case clusterTabsIds . versions : {
127126 return < Versions versionToColor = { versionToColor } /> ;
0 commit comments