From 5a8579de9ea65309a4bf17e6fb2eca46472be979 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:43:09 +0100 Subject: [PATCH] fix: formatting --- .../src/component/common/Table/PaginationBar/PaginationBar.tsx | 3 ++- frontend/src/hooks/useQueryState.ts | 0 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 frontend/src/hooks/useQueryState.ts diff --git a/frontend/src/component/common/Table/PaginationBar/PaginationBar.tsx b/frontend/src/component/common/Table/PaginationBar/PaginationBar.tsx index 7c7a9fecee0f..d1f2bc8221e9 100644 --- a/frontend/src/component/common/Table/PaginationBar/PaginationBar.tsx +++ b/frontend/src/component/common/Table/PaginationBar/PaginationBar.tsx @@ -67,7 +67,8 @@ export const PaginationBar: React.FC = ({ (pageIndex + 1) * pageSize, )}` : totalItems; - const pageCount = totalItems !== undefined ? Math.ceil(totalItems / pageSize) : 1; + const pageCount = + totalItems !== undefined ? Math.ceil(totalItems / pageSize) : 1; const hasPreviousPage = pageIndex > 0; const hasNextPage = totalItems !== undefined && pageIndex < pageCount - 1; diff --git a/frontend/src/hooks/useQueryState.ts b/frontend/src/hooks/useQueryState.ts deleted file mode 100644 index e69de29bb2d1..000000000000