Skip to content

Commit

Permalink
Finish actions, remove unused imports in Activity.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalNewsTV authored and plasticviking committed Nov 4, 2024
1 parent e83548a commit 32b52f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
3 changes: 0 additions & 3 deletions app/src/state/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
42 changes: 0 additions & 42 deletions app/src/state/actions/activity/Activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;

0 comments on commit 32b52f2

Please sign in to comment.