From 32b52f27c0c998c6be33adddeb42c61c294df164 Mon Sep 17 00:00:00 2001 From: LocalNewsTV <62873746+LocalNewsTV@users.noreply.github.com> Date: Mon, 4 Nov 2024 08:44:48 -0800 Subject: [PATCH] Finish actions, remove unused imports in Activity.tsx --- app/src/state/actions.tsx | 3 -- app/src/state/actions/activity/Activity.ts | 42 ---------------------- 2 files changed, 45 deletions(-) diff --git a/app/src/state/actions.tsx b/app/src/state/actions.tsx index 8fe6bcf2b..a492a9299 100644 --- a/app/src/state/actions.tsx +++ b/app/src/state/actions.tsx @@ -87,9 +87,6 @@ export const ACTIVITY_RUN_OFFLINE_SYNC = 'ACTIVITY_RUN_OFFLINE_SYNC'; export const ACTIVITY_RUN_OFFLINE_SYNC_COMPLETE = 'ACTIVITY_RUN_OFFLINE_SYNC_COMPLETE'; export const PAN_AND_ZOOM_TO_ACTIVITY = 'PAN_AND_ZOOM_TO_ACTIVITY'; -export const ACTIVITY_SET_ACTIVE_REQUEST = 'ACTIVITY_SET_ACTIVE_REQUEST'; -export const ACTIVITY_SET_ACTIVE_SUCCESS = 'ACTIVITY_SET_ACTIVE_SUCCESS'; -export const ACTIVITY_SET_ACTIVE_FAILURE = 'ACTIVITY_SET_ACTIVE_FAILURE'; export const ACTIVITY_DEBUG = 'ACTIVITY_DEBUG'; diff --git a/app/src/state/actions/activity/Activity.ts b/app/src/state/actions/activity/Activity.ts index 22416c252..e46dd3f30 100644 --- a/app/src/state/actions/activity/Activity.ts +++ b/app/src/state/actions/activity/Activity.ts @@ -2,44 +2,6 @@ import { createAction } from '@reduxjs/toolkit'; import Offline from './Offline'; import Photos from './Photos'; import Suggestions from './Suggestions'; -import { - ACTIVITY_LINK_RECORD_REQUEST, - ACTIVITY_LINK_RECORD_SUCCESS, - ACTIVITY_LINK_RECORD_FAILURE, - ACTIVITY_PERSIST_REQUEST, - ACTIVITY_PERSIST_SUCCESS, - ACTIVITY_PERSIST_FAILURE, - ACTIVITY_UPDATE_SYNC_STATE, - ACTIVITY_ERRORS, - ACTIVITY_DEBUG, - ACTIVITY_PAGE_MAP_EXTENT_TOGGLE, - ACTIVITY_UPDATE_GEO_REQUEST, - ACTIVITY_UPDATE_GEO_SUCCESS, - ACTIVITY_UPDATE_GEO_FAILURE, - ACTIVITY_GET_INITIAL_STATE_REQUEST, - ACTIVITY_GET_INITIAL_STATE_SUCCESS, - ACTIVITY_GET_INITIAL_STATE_FAILURE, - ACTIVITY_BUILD_SCHEMA_FOR_FORM_REQUEST, - ACTIVITY_BUILD_SCHEMA_FOR_FORM_SUCCESS, - ACTIVITY_ON_FORM_CHANGE_REQUEST, - ACTIVITY_ON_FORM_CHANGE_SUCCESS, - ACTIVITY_SET_CURRENT_HASH_REQUEST, - ACTIVITY_SET_CURRENT_HASH_SUCCESS, - ACTIVITY_SET_CURRENT_HASH_FAILURE, - ACTIVITY_CHEM_TREATMENT_DETAILS_FORM_ON_CHANGE_REQUEST, - ACTIVITY_CHEM_TREATMENT_DETAILS_FORM_ON_CHANGE_SUCCESS, - ACTIVITIES_TABLE_ROWS_GET_REQUEST, - ACTIVITIES_TABLE_ROWS_GET_ONLINE, - ACTIVITIES_TABLE_ROWS_GET_SUCCESS, - ACTIVITIES_TABLE_ROWS_GET_FAILURE, - ACTIVITIES_GET_IDS_FOR_RECORDSET_REQUEST, - ACTIVITIES_GET_IDS_FOR_RECORDSET_ONLINE, - ACTIVITIES_GET_IDS_FOR_RECORDSET_SUCCESS, - // - ACTIVITY_SET_ACTIVE_REQUEST, - ACTIVITY_SET_ACTIVE_SUCCESS, - ACTIVITY_SET_ACTIVE_FAILURE -} from '../../actions'; import AutoFill from './AutoFill'; import GeoJson from './GeoJson'; import { ActivityStatus } from 'sharedAPI'; @@ -97,9 +59,5 @@ class Activity { static readonly getFailure = createAction(`${this.PREFIX}/getFailure`, (arg?: Response) => ({ payload: arg })); - - static readonly setActive = createAction(ACTIVITY_SET_ACTIVE_REQUEST); - static readonly setActiveSuccess = createAction(ACTIVITY_SET_ACTIVE_SUCCESS); - static readonly setActiveFailure = createAction(ACTIVITY_SET_ACTIVE_FAILURE); } export default Activity;