@@ -19,12 +19,17 @@ import {TabletUptime} from '../../components/UptimeViewer/UptimeViewer';
1919import { tabletApi } from '../../store/reducers/tablet' ;
2020import { ETabletState } from '../../types/api/tablet' ;
2121import type { TTabletStateInfo } from '../../types/api/tablet' ;
22+ import { cn } from '../../utils/cn' ;
2223import { DEFAULT_TABLE_SETTINGS , EMPTY_DATA_PLACEHOLDER } from '../../utils/constants' ;
2324import { useIsUserAllowedToMakeChanges } from '../../utils/hooks/useIsUserAllowedToMakeChanges' ;
2425import { getDefaultNodePath } from '../Node/NodePages' ;
2526
2627import i18n from './i18n' ;
2728
29+ import './TabletsTable.scss' ;
30+
31+ const b = cn ( 'ydb-tablets-table' ) ;
32+
2833function getColumns ( { database} : { database ?: string } ) {
2934 const columns : DataTableColumn < TTabletStateInfo & { fqdn ?: string } > [ ] = [
3035 {
@@ -189,8 +194,8 @@ export function TabletsTable({database, tablets, loading, error}: TabletsTablePr
189194 } ;
190195
191196 return (
192- < TableWithControlsLayout >
193- < TableWithControlsLayout . Controls >
197+ < React . Fragment >
198+ < TableWithControlsLayout . Controls wrapperClassName = { b ( 'controls' ) } >
194199 < Search
195200 placeholder = { i18n ( 'controls.search-placeholder' ) }
196201 onChange = { handleSearchQueryChange }
@@ -204,15 +209,17 @@ export function TabletsTable({database, tablets, loading, error}: TabletsTablePr
204209 current = { filteredTablets . length }
205210 />
206211 </ TableWithControlsLayout . Controls >
207- { error ? < ResponseError error = { error } /> : null }
208- < TableWithControlsLayout . Table loading = { loading } >
209- < ResizeableDataTable
210- columns = { columns }
211- data = { filteredTablets }
212- settings = { DEFAULT_TABLE_SETTINGS }
213- emptyDataMessage = { i18n ( 'noTabletsData' ) }
214- />
215- </ TableWithControlsLayout . Table >
216- </ TableWithControlsLayout >
212+ < TableWithControlsLayout >
213+ { error ? < ResponseError error = { error } /> : null }
214+ < TableWithControlsLayout . Table loading = { loading } >
215+ < ResizeableDataTable
216+ columns = { columns }
217+ data = { filteredTablets }
218+ settings = { DEFAULT_TABLE_SETTINGS }
219+ emptyDataMessage = { i18n ( 'noTabletsData' ) }
220+ />
221+ </ TableWithControlsLayout . Table >
222+ </ TableWithControlsLayout >
223+ </ React . Fragment >
217224 ) ;
218225}
0 commit comments