diff --git a/app/src/state/actions.tsx b/app/src/state/actions.tsx index a492a9299..8a50a2cc1 100644 --- a/app/src/state/actions.tsx +++ b/app/src/state/actions.tsx @@ -260,7 +260,3 @@ export const EMAIL_TEMPLATES_RETRIEVE_REQUEST_SUCCESS = 'EMAIL_TEMPLATES_RETRIEV export const EMAIL_TEMPLATES_RETRIEVE_REQUEST_FAILURE = 'EMAIL_TEMPLATES_RETRIEVE_REQUEST_FAILURE'; export const CRASH_HANDLE_GLOBAL_ERROR = 'CRASH_HANDLE_GLOBAL_ERROR'; - -export const NEW_ALERT = 'NEW_ALERT'; -export const CLEAR_ALERTS = 'CLEAR_ALERTS'; -export const CLEAR_ALERT = 'CLEAR_ALERT'; diff --git a/app/src/state/sagas/activity.ts b/app/src/state/sagas/activity.ts index 003f05321..e77bfd5f5 100644 --- a/app/src/state/sagas/activity.ts +++ b/app/src/state/sagas/activity.ts @@ -1,10 +1,8 @@ import { all, call, delay, put, select, take, takeEvery, takeLatest } from 'redux-saga/effects'; -import { buffer } from '@turf/turf'; import { ACTIVITY_BUILD_SCHEMA_FOR_FORM_REQUEST, ACTIVITY_BUILD_SCHEMA_FOR_FORM_SUCCESS, ACTIVITY_CHEM_TREATMENT_DETAILS_FORM_ON_CHANGE_REQUEST, - ACTIVITY_DEBUG, ACTIVITY_LINK_RECORD_REQUEST, ACTIVITY_ON_FORM_CHANGE_REQUEST, ACTIVITY_ON_FORM_CHANGE_SUCCESS, @@ -33,7 +31,6 @@ import { handle_ACTIVITY_GET_SUGGESTED_PERSONS_REQUEST, handle_ACTIVITY_GET_SUGGESTED_TREATMENT_IDS_REQUEST, handle_ACTIVITY_ON_FORM_CHANGE_REQUEST, - handle_ACTIVITY_PASTE_REQUEST, handle_ACTIVITY_SAVE_REQUEST, handle_ACTIVITY_SAVE_SUCCESS, handle_ACTIVITY_SUBMIT_REQUEST, @@ -56,7 +53,7 @@ import { handle_ACTIVITY_RESTORE_OFFLINE, OFFLINE_ACTIVITY_SAGA_HANDLERS } from import { selectUserSettings } from 'state/reducers/userSettings'; import RootUISchemas from 'rjsf/uiSchema/RootUISchemas'; import { AlertSeverity, AlertSubjects } from 'constants/alertEnums'; -import { distance, kinks, lineToPolygon } from '@turf/turf'; +import { buffer, distance, kinks, lineToPolygon } from '@turf/turf'; import GeoShapes from 'constants/geoShapes'; import { calculateGeometryArea } from 'utils/geometryHelpers'; import geomWithinBC from 'utils/geomWithinBC'; @@ -71,10 +68,6 @@ import GeoTracking from 'state/actions/geotracking/GeoTracking'; import Activity from 'state/actions/activity/Activity'; import { selectMap } from 'state/reducers/map'; -function* handle_USER_SETTINGS_READY(action) {} - -function* handle_ACTIVITY_DEBUG(action) {} - function* handle_ACTIVITY_DELETE_SUCESS(action) { yield put(UserSettings.RecordSet.setSelected(null)); yield put( @@ -411,8 +404,6 @@ function* activityPageSaga() { takeEvery(Activity.copy, handle_ACTIVITY_COPY_REQUEST), takeEvery(Activity.getNetworkRequest, handle_ACTIVITY_GET_NETWORK_REQUEST), takeEvery(MAP_SET_COORDS, handle_MAP_SET_COORDS), - takeEvery(UserSettings.InitState.getSuccess, handle_USER_SETTINGS_READY), - takeEvery(UserSettings.Activity.setActiveActivityIdSuccess, handle_USER_SETTINGS_READY), takeEvery(ACTIVITY_UPDATE_GEO_REQUEST, handle_ACTIVITY_UPDATE_GEO_REQUEST), takeEvery(ACTIVITY_UPDATE_GEO_SUCCESS, handle_ACTIVITY_UPDATE_GEO_SUCCESS), takeEvery(Activity.Suggestions.jurisdictions, handle_GET_SUGGESTED_JURISDICTIONS_REQUEST), @@ -436,7 +427,6 @@ function* activityPageSaga() { takeEvery(Activity.createNetwork, handle_ACTIVITY_CREATE_NETWORK), takeEvery(Activity.createSuccess, handle_ACTIVITY_CREATE_SUCCESS), takeEvery(Activity.submit, handle_ACTIVITY_SUBMIT_REQUEST), - takeEvery(ACTIVITY_DEBUG, handle_ACTIVITY_DEBUG), takeEvery(Activity.getSuccess, handle_ACTIVITY_GET_SUCCESS), takeEvery(Activity.Photo.delete, handle_ACTIVITY_DELETE_PHOTO_REQUEST), takeEvery(Activity.Photo.add, handle_ACTIVITY_ADD_PHOTO_REQUEST), diff --git a/app/src/state/sagas/iappsite.ts b/app/src/state/sagas/iappsite.ts index 88bd63d80..f1169a629 100644 --- a/app/src/state/sagas/iappsite.ts +++ b/app/src/state/sagas/iappsite.ts @@ -16,8 +16,8 @@ function* iappPageSaga() { takeEvery(IAPP_GET_NETWORK_REQUEST, handle_IAPP_GET_NETWORK_REQUEST), takeEvery(IAPP_GET_SUCCESS, handle_IAPP_GET_SUCCESS), takeEvery(IAPP_PAN_AND_ZOOM, handle_IAPP_PAN_AND_ZOOM), - takeEvery(UserSettings.InitState.getSuccess.type, handle_USER_SETTINGS_READY), - takeEvery(UserSettings.IAPP.setActiveSuccess.type, handle_USER_SETTINGS_READY) + takeEvery(UserSettings.InitState.getSuccess, handle_USER_SETTINGS_READY), + takeEvery(UserSettings.IAPP.setActiveSuccess, handle_USER_SETTINGS_READY) ]); }