From 5658aaaea254fe4887ec59476b0ff636904293e3 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 12 Aug 2022 12:02:23 +0200 Subject: [PATCH] change(ui) - live list header --- .../LiveSessionList/LiveSessionList.tsx | 47 ++++++++++--------- .../SortOrderButton/SortOrderButton.tsx | 4 +- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx index b6e64c57c..97866a270 100644 --- a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx @@ -14,6 +14,7 @@ import { capitalize } from 'App/utils'; import LiveSessionReloadButton from 'Shared/LiveSessionReloadButton'; import cn from 'classnames'; import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; +import { numberWithCommas } from 'App/utils'; const AUTOREFRESH_INTERVAL = 0.5 * 60 * 1000; const PER_PAGE = 10; @@ -83,33 +84,33 @@ function LiveSessionList(props: Props) { return (
-
-
-

- Live Sessions - {total} -

+
+
+
+

+ Live Sessions + {numberWithCommas(total)} +

- props.applyFilter({ ...filter })} /> -
-
-
- Sort By -
- i.value === filter.sort) || sortOptions[0]} + /> +
+ props.applyFilter({ order: state })} sortOrder={filter.order} /> +
-
-
onChange('asc')} > @@ -23,7 +23,7 @@ export default React.memo(function SortOrderButton(props: Props) {
onChange('desc')} >