Skip to content

Commit 01b973e

Browse files
remove warning
1 parent fe00765 commit 01b973e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/ui/layouts/common/Table/index.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useRef, useState } from 'react';
1+
import React, { useEffect, useState } from 'react';
22
import cn from 'classnames';
33

44
import 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';
1717
import { Pagination } from '../Pagination';
1818
import { usePaginationAsQueryParam } from '../../../hooks/usePaginationAsQueryParam';
1919
import { 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

5555
export 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

Comments
 (0)