From 795cef61e913210e8ae3b111cde6c64121473ccb Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 23 Aug 2022 18:07:06 +0200 Subject: [PATCH] change(ui) - session list pagination count --- .../components/SessionList/SessionList.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/shared/SessionListContainer/components/SessionList/SessionList.tsx b/frontend/app/components/shared/SessionListContainer/components/SessionList/SessionList.tsx index 6d7023ca0..cba50f841 100644 --- a/frontend/app/components/shared/SessionListContainer/components/SessionList/SessionList.tsx +++ b/frontend/app/components/shared/SessionListContainer/components/SessionList/SessionList.tsx @@ -8,6 +8,7 @@ import { fetchSessions, addFilterByKeyAndValue, updateCurrentPage, setScrollPosi import useTimeout from 'App/hooks/useTimeout'; const AUTOREFRESH_INTERVAL = 5 * 60 * 1000; +const PER_PAGE = 10; interface Props { loading: boolean; list: any; @@ -114,12 +115,19 @@ function SessionList(props: Props) { {total > 0 && ( -
+ //
+
+
+ {/* showing x to x of total sessions */} + Showing {(currentPage - 1) * PER_PAGE + 1} to{' '} + {(currentPage - 1) * PER_PAGE + list.size} of{' '} + {total} sessions. +
props.updateCurrentPage(page)} - limit={10} + limit={PER_PAGE} debounceRequest={1000} />