From e9a0aed7b0523f3b017fd25dfca3b95780b45101 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Mon, 5 Aug 2019 18:12:54 +0300 Subject: [PATCH] web: People: Applied selectedOption in paging --- .../src/components/pages/Home/Section/Paging/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/products/ASC.People/Client/src/components/pages/Home/Section/Paging/index.js b/products/ASC.People/Client/src/components/pages/Home/Section/Paging/index.js index 272b3701ad..f398785d79 100644 --- a/products/ASC.People/Client/src/components/pages/Home/Section/Paging/index.js +++ b/products/ASC.People/Client/src/components/pages/Home/Section/Paging/index.js @@ -31,7 +31,7 @@ import { Paging } from "asc-web-components"; } ];*/ -const SectionPagingContent = ({ fetchPeople, filter, onLoading }) => { +const SectionPagingContent = ({ fetchPeople, filter, onLoading, selectedCount }) => { const onNextClick = useCallback(e => { if(!filter.hasNext()) { e.preventDefault(); @@ -113,14 +113,15 @@ const SectionPagingContent = ({ fetchPeople, filter, onLoading }) => { nextAction={onNextClick} openDirection="top" //selectedPage={} //FILTER CURRENT PAGE - //selectedCount={} //FILTER PAGE COUNT + selectedCount={selectedCount} //FILTER PAGE COUNT /> ); }; function mapStateToProps(state) { return { - filter: state.people.filter + filter: state.people.filter, + selectedCount: state.people.filter.pageCount }; }