@@ -28,7 +28,6 @@ import { OnChangeItemsPerPage, OnChangePage } from '../events';
2828import { LastUpdatedAt } from './last_updated' ;
2929import * as i18n from './translations' ;
3030import { useEventDetailsWidthContext } from '../../../../common/components/events_viewer/event_details_width_context' ;
31- import { PaginationEuiFlexItem } from '../../../../common/components/paginated_table' ;
3231import { useManageTimeline } from '../../manage_timeline' ;
3332
3433export const isCompactFooter = ( width : number ) : boolean => width < 600 ;
@@ -288,11 +287,6 @@ export const FooterComponent = ({
288287 totalCount ,
289288 ] ) ;
290289
291- const PaginationWrapper = useMemo (
292- ( ) => ( totalCount > ( activePage + 1 ) * itemsPerPage ? PaginationEuiFlexItem : EuiFlexItem ) ,
293- [ activePage , itemsPerPage , totalCount ]
294- ) ;
295-
296290 useEffect ( ( ) => {
297291 if ( paginationLoading && ! isLoading ) {
298292 setPaginationLoading ( false ) ;
@@ -369,15 +363,13 @@ export const FooterComponent = ({
369363 </ b >
370364 </ EuiText >
371365 ) : (
372- < PaginationWrapper >
373- < PagingControl
374- data-test-subj = "paging-control"
375- totalPages = { totalPages }
376- activePage = { activePage }
377- onPageClick = { handleChangePageClick }
378- isLoading = { isLoading }
379- />
380- </ PaginationWrapper >
366+ < PagingControl
367+ data-test-subj = "paging-control"
368+ totalPages = { totalPages }
369+ activePage = { activePage }
370+ onPageClick = { handleChangePageClick }
371+ isLoading = { isLoading }
372+ />
381373 ) }
382374 </ EuiFlexItem >
383375
0 commit comments