dnazarenkoo 56402b0d40
feat: add the url pagination & update options menu (#2943)
* feat: add dynamic table based on query

* fix: group by repeating

* fix: change view when groupBy exist in the list

* fix: table scroll

* feat: add the pagination and update options menu

* feat: trace explorer is updated

---------

Co-authored-by: Yevhen Shevchenko <y.shevchenko@seedium.io>
Co-authored-by: Nazarenko19 <danil.nazarenko2000@gmail.com>
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
2023-06-24 00:09:59 +05:30

13 lines
252 B
TypeScript

import { Pagination } from './types';
export const checkIsValidPaginationData = ({
limit,
offset,
}: Pagination): boolean =>
Boolean(
limit &&
(limit === 25 || limit === 50 || limit === 100 || limit === 200) &&
offset &&
offset > 0,
);