From b78b05791e3e35a44807e46ea83fd001c8fbf34b Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 28 Apr 2023 17:29:48 +0200 Subject: [PATCH] change(ui) - assist recordings pagination api --- .../Assist/RecordingsList/Recordings.tsx | 38 +++++++---- .../Assist/RecordingsList/RecordingsList.tsx | 64 +++++++++---------- frontend/app/mstore/recordingsStore.ts | 32 +++++++--- frontend/app/services/RecordingsService.ts | 7 +- 4 files changed, 86 insertions(+), 55 deletions(-) diff --git a/frontend/app/components/Assist/RecordingsList/Recordings.tsx b/frontend/app/components/Assist/RecordingsList/Recordings.tsx index c03b703f3..c72adf831 100644 --- a/frontend/app/components/Assist/RecordingsList/Recordings.tsx +++ b/frontend/app/components/Assist/RecordingsList/Recordings.tsx @@ -5,31 +5,45 @@ import RecordingsSearch from './RecordingsSearch'; import RecordingsList from './RecordingsList'; import { useStore } from 'App/mstore'; import { connect } from 'react-redux'; +import SelectDateRange from 'Shared/SelectDateRange/SelectDateRange'; +import Period from 'Types/app/period'; +import { observer } from 'mobx-react-lite'; -function Recordings({ userId }: { userId: string }) { +interface Props { + userId: string; + filter: any; +} + +function Recordings(props: Props) { + const { userId } = props; const { recordingsStore } = useStore(); const recordingsOwner = [ { value: '0', label: 'All Recordings' }, - { value: userId, label: 'My Recordings' }, + { value: userId, label: 'My Recordings' } ]; + const onDateChange = (e: any) => { + recordingsStore.updateTimestamps(e); + }; + return ( -
-
-
- +
+
+
+
-
+
+