@@ -17,18 +17,15 @@ import {
1717import type { GetNodesColumnsParams } from '../../../../../components/nodesColumns/types' ;
1818import { nodesApi } from '../../../../../store/reducers/nodes/nodes' ;
1919import type { NodesPreparedEntity } from '../../../../../store/reducers/nodes/types' ;
20- import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants' ;
2120import type { AdditionalNodesProps } from '../../../../../types/additionalProps' ;
2221import type { NodesRequiredField } from '../../../../../types/api/nodes' ;
2322import {
2423 TENANT_OVERVIEW_TABLES_LIMIT ,
2524 TENANT_OVERVIEW_TABLES_SETTINGS ,
2625} from '../../../../../utils/constants' ;
27- import { useAutoRefreshInterval , useSearchQuery } from '../../../../../utils/hooks' ;
26+ import { useAutoRefreshInterval } from '../../../../../utils/hooks' ;
2827import { getRequiredDataFields } from '../../../../../utils/tableUtils/getRequiredDataFields' ;
29- import { TenantTabsGroups , getTenantPath } from '../../../TenantPages' ;
3028import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout' ;
31- import { getSectionTitle } from '../getSectionTitle' ;
3229import i18n from '../i18n' ;
3330
3431function getTopNodesByMemoryColumns (
@@ -56,8 +53,6 @@ interface TopNodesByMemoryProps {
5653}
5754
5855export function TopNodesByMemory ( { tenantName, additionalNodesProps} : TopNodesByMemoryProps ) {
59- const query = useSearchQuery ( ) ;
60-
6156 const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
6257 const [ columns , fieldsRequired ] = getTopNodesByMemoryColumns ( {
6358 getNodeRef : additionalNodesProps ?. getNodeRef ,
@@ -80,22 +75,8 @@ export function TopNodesByMemory({tenantName, additionalNodesProps}: TopNodesByM
8075
8176 const topNodes = currentData ?. Nodes || [ ] ;
8277
83- const title = getSectionTitle ( {
84- entity : i18n ( 'nodes' ) ,
85- postfix : i18n ( 'by-memory' ) ,
86- link : getTenantPath ( {
87- ...query ,
88- [ TenantTabsGroups . diagnosticsTab ] : TENANT_DIAGNOSTICS_TABS_IDS . nodes ,
89- } ) ,
90- } ) ;
91-
9278 return (
93- < TenantOverviewTableLayout
94- title = { title }
95- loading = { loading }
96- error = { error }
97- withData = { Boolean ( currentData ) }
98- >
79+ < TenantOverviewTableLayout loading = { loading } error = { error } withData = { Boolean ( currentData ) } >
9980 < ResizeableDataTable
10081 columnsWidthLSKey = { NODES_COLUMNS_WIDTH_LS_KEY }
10182 data = { topNodes }
0 commit comments