@@ -10,15 +10,14 @@ import {InternalLink} from '../../components/InternalLink';
1010import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable' ;
1111import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton' ;
1212import routes , { createHref } from '../../routes' ;
13- import { selectAutoRefreshInterval } from '../../store/reducers/autoRefreshControl' ;
1413import { selectTabletsWithFqdn , tabletsApi } from '../../store/reducers/tablets' ;
1514import { ETabletState } from '../../types/api/tablet' ;
1615import type { TTabletStateInfo } from '../../types/api/tablet' ;
1716import type { TabletsApiRequestParams } from '../../types/store/tablets' ;
1817import { cn } from '../../utils/cn' ;
1918import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants' ;
2019import { calcUptime } from '../../utils/dataFormatters/dataFormatters' ;
21- import { useTypedDispatch , useTypedSelector } from '../../utils/hooks' ;
20+ import { useAutoRefreshInterval , useTypedDispatch , useTypedSelector } from '../../utils/hooks' ;
2221import { mapTabletStateToLabelTheme } from '../../utils/tablet' ;
2322import { getDefaultNodePath } from '../Node/NodePages' ;
2423
@@ -146,7 +145,7 @@ interface TabletsProps {
146145}
147146
148147export function Tablets ( { nodeId, path, className} : TabletsProps ) {
149- const autoRefreshInterval = useTypedSelector ( selectAutoRefreshInterval ) ;
148+ const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
150149
151150 let params : TabletsApiRequestParams = { } ;
152151 const node = nodeId === undefined ? undefined : String ( nodeId ) ;
0 commit comments