From e83548a58cabd5f2cd8d5d14dd75216f1926f694 Mon Sep 17 00:00:00 2001 From: LocalNewsTV <62873746+LocalNewsTV@users.noreply.github.com> Date: Mon, 4 Nov 2024 08:36:20 -0800 Subject: [PATCH] actions: get -> getFailure --- .../OfflineDataSync/OfflineDataSyncTable.tsx | 5 +- app/src/state/actions.tsx | 5 -- app/src/state/actions/activity/Activity.ts | 16 ++--- app/src/state/reducers/activity.ts | 30 +++------ app/src/state/reducers/userSettings.ts | 7 +- app/src/state/sagas/activity.ts | 15 ++--- app/src/state/sagas/activity/dataAccess.ts | 28 +++----- app/src/state/sagas/activity/offline.ts | 64 ++++++++----------- app/src/state/sagas/activity/online.ts | 13 ++-- 9 files changed, 66 insertions(+), 117 deletions(-) diff --git a/app/src/UI/OfflineDataSync/OfflineDataSyncTable.tsx b/app/src/UI/OfflineDataSync/OfflineDataSyncTable.tsx index 2f7b5f634..6503a0bae 100644 --- a/app/src/UI/OfflineDataSync/OfflineDataSyncTable.tsx +++ b/app/src/UI/OfflineDataSync/OfflineDataSyncTable.tsx @@ -3,13 +3,14 @@ import { Button, LinearProgress } from '@mui/material'; import { OfflineActivityRecord, selectOfflineActivity } from 'state/reducers/offlineActivity'; import { useSelector } from 'utils/use_selector'; import { useDispatch } from 'react-redux'; -import { ACTIVITY_GET_LOCAL_REQUEST, ACTIVITY_OFFLINE_DELETE_ITEM, ACTIVITY_RUN_OFFLINE_SYNC } from 'state/actions'; +import { ACTIVITY_OFFLINE_DELETE_ITEM, ACTIVITY_RUN_OFFLINE_SYNC } from 'state/actions'; import Delete from '@mui/icons-material/Delete'; import './OfflineDataSync.css'; import moment from 'moment'; import { FileOpen } from '@mui/icons-material'; import { ActivitySubtypeShortLabels } from 'sharedAPI'; import { useHistory } from 'react-router-dom'; +import Activity from 'state/actions/activity/Activity'; export const OfflineDataSyncTable = () => { const { working, serializedActivities } = useSelector(selectOfflineActivity); @@ -60,7 +61,7 @@ export const OfflineDataSyncTable = () => {