1- import React , { useEffect , useRef , useState } from 'react' ;
1+ import React , { useEffect , useState } from 'react' ;
22import cn from 'classnames' ;
33
44import styles from './index.module.scss' ;
@@ -10,10 +10,10 @@ import {
1010 H3 ,
1111 Truncate ,
1212 FullWidthSpinner ,
13- Paragraph ,
13+ // Paragraph,
1414 icons ,
1515} from '../../../components' ;
16- import { getPaginationData } from '../../../../utils/pagination' ;
16+ // import { getPaginationData } from '../../../../utils/pagination';
1717import { Pagination } from '../Pagination' ;
1818import { usePaginationAsQueryParam } from '../../../hooks/usePaginationAsQueryParam' ;
1919import { useLocation } from '../../../hooks' ;
@@ -50,7 +50,7 @@ export interface TableProps {
5050 trOnClick ?: ( arg : any ) => void ;
5151}
5252
53- const ITEMS_PER_PAGE = parseInt ( process . env . REACT_APP_ITEMS_PER_PAGE as string ) ;
53+ // const ITEMS_PER_PAGE = parseInt(process.env.REACT_APP_ITEMS_PER_PAGE as string);
5454
5555export const Table : React . FC < TableProps > = ( {
5656 headerCols,
@@ -150,11 +150,11 @@ export const Table: React.FC<TableProps> = ({
150150 const [ itemPerPage , setItemPerPage ] = useState (
151151 ITEMS_PER_PAGE ? ITEMS_PER_PAGE : DEFAULT_ITEMS_PER_PAGE ,
152152 ) ;
153- const { itemsForPage, pages, totalOfPages } = getPaginationData ( {
154- pageIndex,
155- itemsPerPage : itemPerPage ,
156- items : tableRows ,
157- } ) ;
153+ // const { itemsForPage, pages, totalOfPages } = getPaginationData({
154+ // pageIndex,
155+ // itemsPerPage: itemPerPage,
156+ // items: tableRows,
157+ // });
158158 const isValidFilter = filters ?. map ( ( f ) => f . value ) . join ( '' ) ;
159159
160160 const { dispatchStackData } = callActionForStacksForPagination ( ) ;
@@ -216,7 +216,8 @@ export const Table: React.FC<TableProps> = ({
216216 default :
217217 break ;
218218 }
219- //for runs
219+
220+ // eslint-disable-next-line react-hooks/exhaustive-deps
220221 } , [ locationPath . pathname . split ( '/' ) [ 4 ] , isValidFilter ] ) ;
221222 let rowsToDisplay = tableRows ;
222223
0 commit comments