@@ -17,18 +17,15 @@ import {
17
17
import type { GetNodesColumnsParams } from '../../../../../components/nodesColumns/types' ;
18
18
import { nodesApi } from '../../../../../store/reducers/nodes/nodes' ;
19
19
import type { NodesPreparedEntity } from '../../../../../store/reducers/nodes/types' ;
20
- import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants' ;
21
20
import type { AdditionalNodesProps } from '../../../../../types/additionalProps' ;
22
21
import type { NodesRequiredField } from '../../../../../types/api/nodes' ;
23
22
import {
24
23
TENANT_OVERVIEW_TABLES_LIMIT ,
25
24
TENANT_OVERVIEW_TABLES_SETTINGS ,
26
25
} from '../../../../../utils/constants' ;
27
- import { useAutoRefreshInterval , useSearchQuery } from '../../../../../utils/hooks' ;
26
+ import { useAutoRefreshInterval } from '../../../../../utils/hooks' ;
28
27
import { getRequiredDataFields } from '../../../../../utils/tableUtils/getRequiredDataFields' ;
29
- import { TenantTabsGroups , getTenantPath } from '../../../TenantPages' ;
30
28
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout' ;
31
- import { getSectionTitle } from '../getSectionTitle' ;
32
29
import i18n from '../i18n' ;
33
30
34
31
function getTopNodesByMemoryColumns (
@@ -56,8 +53,6 @@ interface TopNodesByMemoryProps {
56
53
}
57
54
58
55
export function TopNodesByMemory ( { tenantName, additionalNodesProps} : TopNodesByMemoryProps ) {
59
- const query = useSearchQuery ( ) ;
60
-
61
56
const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
62
57
const [ columns , fieldsRequired ] = getTopNodesByMemoryColumns ( {
63
58
getNodeRef : additionalNodesProps ?. getNodeRef ,
@@ -80,22 +75,8 @@ export function TopNodesByMemory({tenantName, additionalNodesProps}: TopNodesByM
80
75
81
76
const topNodes = currentData ?. Nodes || [ ] ;
82
77
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
-
92
78
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 ) } >
99
80
< ResizeableDataTable
100
81
columnsWidthLSKey = { NODES_COLUMNS_WIDTH_LS_KEY }
101
82
data = { topNodes }
0 commit comments