@@ -11,11 +11,14 @@ import type {MetaClusterVersion} from '../../../types/api/meta';
1111import type { ETenantType } from '../../../types/api/tenant' ;
1212import { getVersionColors , getVersionMap } from '../../../utils/clusterVersionColors' ;
1313import { cn } from '../../../utils/cn' ;
14+ import { USE_CLUSTER_BALANCER_AS_BACKEND_KEY } from '../../../utils/constants' ;
15+ import { useSetting } from '../../../utils/hooks' ;
16+ import { useAdditionalNodesProps } from '../../../utils/hooks/useAdditionalNodesProps' ;
1417import type { GetMonitoringClusterLink , GetMonitoringLink } from '../../../utils/monitoring' ;
1518import { getCleanBalancerValue , removeViewerPathname } from '../../../utils/parseBalancer' ;
1619import { getBackendFromNodeHost , getBackendFromRawNodeData } from '../../../utils/prepareBackend' ;
1720import type { Cluster } from '../../Cluster/Cluster' ;
18- import { useClusterData } from '../useClusterData' ;
21+ import { useClusterVersions } from '../useClusterData' ;
1922
2023import './ExtendedCluster.scss' ;
2124
@@ -123,10 +126,12 @@ export function ExtendedCluster({
123126 getMonitoringLink,
124127 getMonitoringClusterLink,
125128} : ExtendedClusterProps ) {
126- const { versions, useClusterBalancerAsBackend , additionalNodesProps } = useClusterData ( ) ;
127-
129+ const versions = useClusterVersions ( ) ;
130+ const additionalNodesProps = useAdditionalNodesProps ( ) ;
128131 const { name, balancer, monitoring} = useClusterBaseInfo ( ) ;
129132
133+ const [ useClusterBalancerAsBackend ] = useSetting < boolean > ( USE_CLUSTER_BALANCER_AS_BACKEND_KEY ) ;
134+
130135 return (
131136 < div className = { b ( ) } >
132137 < ClusterComponent
0 commit comments