diff --git a/web-client/src/app.tsx b/web-client/src/app.tsx index 381b12043c3..002124c945b 100644 --- a/web-client/src/app.tsx +++ b/web-client/src/app.tsx @@ -118,7 +118,7 @@ import { presenter } from './presenter/presenter'; import { socketProvider } from './providers/socket'; import { socketRouter } from './providers/socketRouter'; import { withAppContextDecorator } from './withAppContext'; -import App from 'cerebral'; +import App from './utilities/cerebralWrapper'; import React from 'react'; /** diff --git a/web-client/src/appPublic.tsx b/web-client/src/appPublic.tsx index 115260701c2..a2fdd43f66c 100644 --- a/web-client/src/appPublic.tsx +++ b/web-client/src/appPublic.tsx @@ -42,7 +42,7 @@ import { faUser } from '@fortawesome/free-regular-svg-icons/faUser'; import { isFunction, mapValues } from 'lodash'; import { library } from '@fortawesome/fontawesome-svg-core'; import { presenter } from './presenter/presenter-public'; -import App from 'cerebral'; +import App from './utilities/cerebralWrapper'; import React from 'react'; /** diff --git a/web-client/src/presenter/actions/getAllFeatureFlagsAction.ts b/web-client/src/presenter/actions/getAllFeatureFlagsAction.ts index ea4c1087f2b..f001594c64d 100644 --- a/web-client/src/presenter/actions/getAllFeatureFlagsAction.ts +++ b/web-client/src/presenter/actions/getAllFeatureFlagsAction.ts @@ -1,4 +1,4 @@ -import { state } from 'cerebral'; +import { state } from '../../utilities/cerebralWrapper'; /** * Gets the value of all feature flags used in the system and sets them on state diff --git a/web-client/src/presenter/app-public.cerebral.ts b/web-client/src/presenter/app-public.cerebral.ts index dbefc912841..654b3ae5e74 100644 --- a/web-client/src/presenter/app-public.cerebral.ts +++ b/web-client/src/presenter/app-public.cerebral.ts @@ -1,7 +1,7 @@ import { sequences as cerebralSequences, state as cerebralState, -} from 'cerebral'; +} from '../utilities/cerebralWrapper'; import type { PublicClientState } from './state-public'; import type { PublicSequences } from '@web-client/presenter/presenter-public'; diff --git a/web-client/src/presenter/app.cerebral.ts b/web-client/src/presenter/app.cerebral.ts index 289bc4380eb..15cf2bfcf91 100644 --- a/web-client/src/presenter/app.cerebral.ts +++ b/web-client/src/presenter/app.cerebral.ts @@ -1,7 +1,7 @@ import { sequences as cerebralSequences, state as cerebralState, -} from 'cerebral'; +} from '../utilities/cerebralWrapper'; import type { ClientState } from '@web-client/presenter/state'; import type { Sequences } from '@web-client/presenter/presenter'; diff --git a/web-client/src/presenter/computeds/AdvancedSearch/CaseSearchByNameHelper.ts b/web-client/src/presenter/computeds/AdvancedSearch/CaseSearchByNameHelper.ts index b78238f855e..347415bf3f9 100644 --- a/web-client/src/presenter/computeds/AdvancedSearch/CaseSearchByNameHelper.ts +++ b/web-client/src/presenter/computeds/AdvancedSearch/CaseSearchByNameHelper.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { FORMATS } from '../../../../../shared/src/business/utilities/DateHandler'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; export const caseSearchByNameHelper = ( get: Get, diff --git a/web-client/src/presenter/computeds/AdvancedSearch/advancedDocumentSearchHelper.ts b/web-client/src/presenter/computeds/AdvancedSearch/advancedDocumentSearchHelper.ts index 0753c59ee73..e4d3905d07c 100644 --- a/web-client/src/presenter/computeds/AdvancedSearch/advancedDocumentSearchHelper.ts +++ b/web-client/src/presenter/computeds/AdvancedSearch/advancedDocumentSearchHelper.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { DocketEntry } from '@shared/business/entities/DocketEntry'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { capitalize } from 'lodash'; import { paginationHelper } from './advancedSearchHelper'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/AdvancedSearch/advancedSearchHelper.ts b/web-client/src/presenter/computeds/AdvancedSearch/advancedSearchHelper.ts index f55831c60ad..39ba3b92a23 100644 --- a/web-client/src/presenter/computeds/AdvancedSearch/advancedSearchHelper.ts +++ b/web-client/src/presenter/computeds/AdvancedSearch/advancedSearchHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { US_STATES } from '../../../../../shared/src/business/entities/EntityConstants'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/AdvancedSearch/practitionerSearchHelper.ts b/web-client/src/presenter/computeds/AdvancedSearch/practitionerSearchHelper.ts index e62b1ddd381..48f8fa0ee9f 100644 --- a/web-client/src/presenter/computeds/AdvancedSearch/practitionerSearchHelper.ts +++ b/web-client/src/presenter/computeds/AdvancedSearch/practitionerSearchHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '../../../applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { PRACTITIONER_SEARCH_PAGE_SIZE, US_STATES, diff --git a/web-client/src/presenter/computeds/CaseWorksheets/addEditCaseWorksheetModalHelper.ts b/web-client/src/presenter/computeds/CaseWorksheets/addEditCaseWorksheetModalHelper.ts index 97e1ba751ac..e74cc40f744 100644 --- a/web-client/src/presenter/computeds/CaseWorksheets/addEditCaseWorksheetModalHelper.ts +++ b/web-client/src/presenter/computeds/CaseWorksheets/addEditCaseWorksheetModalHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const addEditCaseWorksheetModalHelper = ( diff --git a/web-client/src/presenter/computeds/CaseWorksheets/caseWorksheetsHelper.ts b/web-client/src/presenter/computeds/CaseWorksheets/caseWorksheetsHelper.ts index 5cbb6fdc8df..b282d491e01 100644 --- a/web-client/src/presenter/computeds/CaseWorksheets/caseWorksheetsHelper.ts +++ b/web-client/src/presenter/computeds/CaseWorksheets/caseWorksheetsHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { RawCaseWorksheet } from '@shared/business/entities/caseWorksheet/CaseWorksheet'; import { formatPositiveNumber } from '@shared/business/utilities/formatPositiveNumber'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/CreatePetitionerAccount/createAccountHelper.ts b/web-client/src/presenter/computeds/CreatePetitionerAccount/createAccountHelper.ts index 7b60c22ab9b..cb2effa903e 100644 --- a/web-client/src/presenter/computeds/CreatePetitionerAccount/createAccountHelper.ts +++ b/web-client/src/presenter/computeds/CreatePetitionerAccount/createAccountHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { NewPetitionerUser } from '@shared/business/entities/NewPetitionerUser'; import { PASSWORD_RULE, diff --git a/web-client/src/presenter/computeds/Dashboard/externalUserCasesHelper.ts b/web-client/src/presenter/computeds/Dashboard/externalUserCasesHelper.ts index 43b4906b13e..c206e8f545c 100644 --- a/web-client/src/presenter/computeds/Dashboard/externalUserCasesHelper.ts +++ b/web-client/src/presenter/computeds/Dashboard/externalUserCasesHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { TAssociatedCase } from '@shared/business/useCases/getCasesForUserInteractor'; import { cloneDeep } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts b/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts index 59bd0cb3892..be0b4d41189 100644 --- a/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts +++ b/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts @@ -2,7 +2,7 @@ import { ASCENDING } from '@shared/business/entities/EntityConstants'; import { CaseDocumentsCountType } from '@web-api/persistence/elasticsearch/fetchEventCodesCountForJudges'; import { ClientApplicationContext } from '@web-client/applicationContext'; import { FORMATS } from '@shared/business/utilities/DateHandler'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; function calculateStatisticsTotal( diff --git a/web-client/src/presenter/computeds/Login/changePasswordHelper.ts b/web-client/src/presenter/computeds/Login/changePasswordHelper.ts index dc08adddfc0..3776af5a622 100644 --- a/web-client/src/presenter/computeds/Login/changePasswordHelper.ts +++ b/web-client/src/presenter/computeds/Login/changePasswordHelper.ts @@ -1,5 +1,5 @@ import { ChangePasswordForm } from '@shared/business/entities/ChangePasswordForm'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { PASSWORD_RULE, PASSWORD_VALIDATION_ERROR_MESSAGES, diff --git a/web-client/src/presenter/computeds/PDFPreviewModal/pdfPreviewModalHelper.ts b/web-client/src/presenter/computeds/PDFPreviewModal/pdfPreviewModalHelper.ts index e7636043e6b..63f7b60cfc3 100644 --- a/web-client/src/presenter/computeds/PDFPreviewModal/pdfPreviewModalHelper.ts +++ b/web-client/src/presenter/computeds/PDFPreviewModal/pdfPreviewModalHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; export const pdfPreviewModalHelper = (get: Get): any => { const currentPage = get(state.modal.pdfPreviewModal.currentPage); const error = get(state.modal.pdfPreviewModal.error); diff --git a/web-client/src/presenter/computeds/PendingMotions/addEditDocketEntryWorksheetModalHelper.ts b/web-client/src/presenter/computeds/PendingMotions/addEditDocketEntryWorksheetModalHelper.ts index a341d721a06..0abdc2026ab 100644 --- a/web-client/src/presenter/computeds/PendingMotions/addEditDocketEntryWorksheetModalHelper.ts +++ b/web-client/src/presenter/computeds/PendingMotions/addEditDocketEntryWorksheetModalHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const addEditDocketEntryWorksheetModalHelper = ( diff --git a/web-client/src/presenter/computeds/PendingMotions/pendingMotionsHelper.ts b/web-client/src/presenter/computeds/PendingMotions/pendingMotionsHelper.ts index d7f4f139f9c..99ef175b6f4 100644 --- a/web-client/src/presenter/computeds/PendingMotions/pendingMotionsHelper.ts +++ b/web-client/src/presenter/computeds/PendingMotions/pendingMotionsHelper.ts @@ -5,7 +5,7 @@ import { RawDocketEntryWorksheet, } from '@shared/business/entities/docketEntryWorksheet/DocketEntryWorksheet'; import { FormattedPendingMotionWithWorksheet } from '@web-api/business/useCases/pendingMotion/getPendingMotionDocketEntriesForCurrentJudgeInteractor'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { isLeadCase } from '@shared/business/entities/cases/Case'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/Public/publicAlertHelper.ts b/web-client/src/presenter/computeds/Public/publicAlertHelper.ts index ac7569884ff..bfd901cfa2a 100644 --- a/web-client/src/presenter/computeds/Public/publicAlertHelper.ts +++ b/web-client/src/presenter/computeds/Public/publicAlertHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app-public.cerebral'; import { uniq } from 'lodash'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; export const publicAlertHelper = (get: Get) => { const alertError = get(state.alertError) || {}; diff --git a/web-client/src/presenter/computeds/Public/publicCaseDetailHeaderHelper.ts b/web-client/src/presenter/computeds/Public/publicCaseDetailHeaderHelper.ts index 104ee6724bf..3da3c63fd8b 100644 --- a/web-client/src/presenter/computeds/Public/publicCaseDetailHeaderHelper.ts +++ b/web-client/src/presenter/computeds/Public/publicCaseDetailHeaderHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app-public.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; export const publicCaseDetailHeaderHelper = (get: Get) => { const caseDetail = get(state.caseDetail); diff --git a/web-client/src/presenter/computeds/Public/publicCaseDetailHelper.ts b/web-client/src/presenter/computeds/Public/publicCaseDetailHelper.ts index e1683a0c882..a1c644e9694 100644 --- a/web-client/src/presenter/computeds/Public/publicCaseDetailHelper.ts +++ b/web-client/src/presenter/computeds/Public/publicCaseDetailHelper.ts @@ -7,7 +7,7 @@ import { } from '../../../../../shared/src/business/entities/EntityConstants'; import { ClientApplicationContext } from '@web-client/applicationContext'; import { DocketEntry } from '../../../../../shared/src/business/entities/DocketEntry'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { computeIsNotServedDocument, getFilingsAndProceedings, diff --git a/web-client/src/presenter/computeds/Public/todaysOpinionsHelper.ts b/web-client/src/presenter/computeds/Public/todaysOpinionsHelper.ts index cd30fb58c7f..4e01e3e2f58 100644 --- a/web-client/src/presenter/computeds/Public/todaysOpinionsHelper.ts +++ b/web-client/src/presenter/computeds/Public/todaysOpinionsHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app-public.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; export const todaysOpinionsHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/Public/todaysOrdersHelper.ts b/web-client/src/presenter/computeds/Public/todaysOrdersHelper.ts index 310ccc20690..0b2b8e75174 100644 --- a/web-client/src/presenter/computeds/Public/todaysOrdersHelper.ts +++ b/web-client/src/presenter/computeds/Public/todaysOrdersHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { STANDING_PRETRIAL_EVENT_CODES } from '../../../../../shared/src/business/entities/EntityConstants'; import { state } from '@web-client/presenter/app-public.cerebral'; diff --git a/web-client/src/presenter/computeds/TrialSession/addTrialSessionInformationHelper.ts b/web-client/src/presenter/computeds/TrialSession/addTrialSessionInformationHelper.ts index 69aacb3aa1a..790bfd8f87a 100644 --- a/web-client/src/presenter/computeds/TrialSession/addTrialSessionInformationHelper.ts +++ b/web-client/src/presenter/computeds/TrialSession/addTrialSessionInformationHelper.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { FORMATS } from '../../../../../shared/src/business/utilities/DateHandler'; -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { TrialSession } from '../../../../../shared/src/business/entities/trialSessions/TrialSession'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/TrialSession/getAllIrsPractitionersForSelectHelper.ts b/web-client/src/presenter/computeds/TrialSession/getAllIrsPractitionersForSelectHelper.ts index 1cf790b4920..d3995f9e09c 100644 --- a/web-client/src/presenter/computeds/TrialSession/getAllIrsPractitionersForSelectHelper.ts +++ b/web-client/src/presenter/computeds/TrialSession/getAllIrsPractitionersForSelectHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../../utilities/cerebralWrapper'; import { RawUser } from '@shared/business/entities/User'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/addCourtIssuedDocketEntryHelper.ts b/web-client/src/presenter/computeds/addCourtIssuedDocketEntryHelper.ts index 4af3990dcc6..e9e05eabcc2 100644 --- a/web-client/src/presenter/computeds/addCourtIssuedDocketEntryHelper.ts +++ b/web-client/src/presenter/computeds/addCourtIssuedDocketEntryHelper.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { DocketEntry } from '@shared/business/entities/DocketEntry'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const addCourtIssuedDocketEntryHelper = ( diff --git a/web-client/src/presenter/computeds/addDocketEntryHelper.ts b/web-client/src/presenter/computeds/addDocketEntryHelper.ts index e0b948a5a06..f6ac1c71b38 100644 --- a/web-client/src/presenter/computeds/addDocketEntryHelper.ts +++ b/web-client/src/presenter/computeds/addDocketEntryHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { find, orderBy } from 'lodash'; import { getOptionsForCategory } from './selectDocumentTypeHelper'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/addDocketNumbersModalHelper.ts b/web-client/src/presenter/computeds/addDocketNumbersModalHelper.ts index 0ac2d4f0d09..6c27f195a3b 100644 --- a/web-client/src/presenter/computeds/addDocketNumbersModalHelper.ts +++ b/web-client/src/presenter/computeds/addDocketNumbersModalHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const addDocketNumbersModalHelper = ( diff --git a/web-client/src/presenter/computeds/addToTrialSessionModalHelper.ts b/web-client/src/presenter/computeds/addToTrialSessionModalHelper.ts index 48a9a421be7..94389db2c2d 100644 --- a/web-client/src/presenter/computeds/addToTrialSessionModalHelper.ts +++ b/web-client/src/presenter/computeds/addToTrialSessionModalHelper.ts @@ -129,7 +129,7 @@ export const trialSessionsModalHelper = ({ }; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const addToTrialSessionModalHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/alertHelper.ts b/web-client/src/presenter/computeds/alertHelper.ts index 2e0e8ad3271..f5b5242ef66 100644 --- a/web-client/src/presenter/computeds/alertHelper.ts +++ b/web-client/src/presenter/computeds/alertHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import { uniq } from 'lodash'; diff --git a/web-client/src/presenter/computeds/appInstanceManagerHelper.ts b/web-client/src/presenter/computeds/appInstanceManagerHelper.ts index 2e2c2b8a6c5..a754f1b3a9a 100644 --- a/web-client/src/presenter/computeds/appInstanceManagerHelper.ts +++ b/web-client/src/presenter/computeds/appInstanceManagerHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const appInstanceManagerHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/applyStampFormHelper.ts b/web-client/src/presenter/computeds/applyStampFormHelper.ts index e751d32ddd2..a4c1b643211 100644 --- a/web-client/src/presenter/computeds/applyStampFormHelper.ts +++ b/web-client/src/presenter/computeds/applyStampFormHelper.ts @@ -8,7 +8,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} apply stamp form helper fields */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const applyStampFormHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/batchDownloadHelper.ts b/web-client/src/presenter/computeds/batchDownloadHelper.ts index df484406a36..ced5bf7df60 100644 --- a/web-client/src/presenter/computeds/batchDownloadHelper.ts +++ b/web-client/src/presenter/computeds/batchDownloadHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const batchDownloadHelper = ( diff --git a/web-client/src/presenter/computeds/blockedCasesReportHelper.ts b/web-client/src/presenter/computeds/blockedCasesReportHelper.ts index cae8244c8c0..2e68e0a0a4b 100644 --- a/web-client/src/presenter/computeds/blockedCasesReportHelper.ts +++ b/web-client/src/presenter/computeds/blockedCasesReportHelper.ts @@ -8,7 +8,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} {blockedCasesFormatted: *[], blockedCasesCount: number} */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const blockedCasesReportHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseAssociationRequestHelper.ts b/web-client/src/presenter/computeds/caseAssociationRequestHelper.ts index d5c9ca85d90..6e85119f4c9 100644 --- a/web-client/src/presenter/computeds/caseAssociationRequestHelper.ts +++ b/web-client/src/presenter/computeds/caseAssociationRequestHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { getDocumentTypesForSelect } from './internalTypesHelper'; import { getFilerParties } from './getFilerParties'; import { showGenerationType } from '@web-client/presenter/actions/setDefaultGenerationTypeAction'; diff --git a/web-client/src/presenter/computeds/caseDeadlineReportHelper.ts b/web-client/src/presenter/computeds/caseDeadlineReportHelper.ts index f1f6240351a..cb9ed7c1b1f 100644 --- a/web-client/src/presenter/computeds/caseDeadlineReportHelper.ts +++ b/web-client/src/presenter/computeds/caseDeadlineReportHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseDeadlineReportHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseDetailEditHelper.ts b/web-client/src/presenter/computeds/caseDetailEditHelper.ts index 4a6ed404a8a..7c46d232f14 100644 --- a/web-client/src/presenter/computeds/caseDetailEditHelper.ts +++ b/web-client/src/presenter/computeds/caseDetailEditHelper.ts @@ -12,7 +12,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * showCorporateDisclosureStatement, and corporateDisclosureStatementDocumentId */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseDetailEditHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseDetailHeaderHelper.ts b/web-client/src/presenter/computeds/caseDetailHeaderHelper.ts index ebdc4b1c57b..ec7470cc85c 100644 --- a/web-client/src/presenter/computeds/caseDetailHeaderHelper.ts +++ b/web-client/src/presenter/computeds/caseDetailHeaderHelper.ts @@ -1,6 +1,6 @@ import { Case } from '../../../../shared/src/business/entities/cases/Case'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { PRACTICE_TYPE, ROLES, diff --git a/web-client/src/presenter/computeds/caseDetailHelper.ts b/web-client/src/presenter/computeds/caseDetailHelper.ts index e346e605a02..7d46fcb261c 100644 --- a/web-client/src/presenter/computeds/caseDetailHelper.ts +++ b/web-client/src/presenter/computeds/caseDetailHelper.ts @@ -1,7 +1,7 @@ /* eslint-disable complexity */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { isEmpty } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/caseDetailPractitionerSearchHelper.ts b/web-client/src/presenter/computeds/caseDetailPractitionerSearchHelper.ts index abc5023958d..47457883b8c 100644 --- a/web-client/src/presenter/computeds/caseDetailPractitionerSearchHelper.ts +++ b/web-client/src/presenter/computeds/caseDetailPractitionerSearchHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseDetailPractitionerSearchHelper = (get: Get): any => { const caseDetail = get(state.caseDetail); const modalState = get(state.modal); diff --git a/web-client/src/presenter/computeds/caseDetailSubnavHelper.ts b/web-client/src/presenter/computeds/caseDetailSubnavHelper.ts index 0ff1b27e078..a55ce56e160 100644 --- a/web-client/src/presenter/computeds/caseDetailSubnavHelper.ts +++ b/web-client/src/presenter/computeds/caseDetailSubnavHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseDetailSubnavHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseInformationHelper.ts b/web-client/src/presenter/computeds/caseInformationHelper.ts index 8861ec49f42..433ee16d742 100644 --- a/web-client/src/presenter/computeds/caseInformationHelper.ts +++ b/web-client/src/presenter/computeds/caseInformationHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseInformationHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseInventoryReportHelper.ts b/web-client/src/presenter/computeds/caseInventoryReportHelper.ts index 9d3772ba348..310406998e0 100644 --- a/web-client/src/presenter/computeds/caseInventoryReportHelper.ts +++ b/web-client/src/presenter/computeds/caseInventoryReportHelper.ts @@ -2,7 +2,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { without } from 'lodash'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseInventoryReportHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseSearchBoxHelper.ts b/web-client/src/presenter/computeds/caseSearchBoxHelper.ts index 270196c004d..e3230fe0768 100644 --- a/web-client/src/presenter/computeds/caseSearchBoxHelper.ts +++ b/web-client/src/presenter/computeds/caseSearchBoxHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseSearchBoxHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseSearchNoMatchesHelper.ts b/web-client/src/presenter/computeds/caseSearchNoMatchesHelper.ts index aecb20c6295..6b2469a5f4d 100644 --- a/web-client/src/presenter/computeds/caseSearchNoMatchesHelper.ts +++ b/web-client/src/presenter/computeds/caseSearchNoMatchesHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseSearchNoMatchesHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseStatusHistoryHelper.ts b/web-client/src/presenter/computeds/caseStatusHistoryHelper.ts index 61de8f331fc..4d16234e784 100644 --- a/web-client/src/presenter/computeds/caseStatusHistoryHelper.ts +++ b/web-client/src/presenter/computeds/caseStatusHistoryHelper.ts @@ -8,7 +8,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} array of case types with descriptions */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseStatusHistoryHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/caseTypeDescriptionHelper.ts b/web-client/src/presenter/computeds/caseTypeDescriptionHelper.ts index 7a0bda8f958..89193cd5f18 100644 --- a/web-client/src/presenter/computeds/caseTypeDescriptionHelper.ts +++ b/web-client/src/presenter/computeds/caseTypeDescriptionHelper.ts @@ -10,7 +10,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} array of case types with descriptions */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const caseTypeDescriptionHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/completeDocumentTypeSectionHelper.ts b/web-client/src/presenter/computeds/completeDocumentTypeSectionHelper.ts index ca70a5db4c1..46fa0a297ba 100644 --- a/web-client/src/presenter/computeds/completeDocumentTypeSectionHelper.ts +++ b/web-client/src/presenter/computeds/completeDocumentTypeSectionHelper.ts @@ -9,7 +9,7 @@ import { isEmpty } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const completeDocumentTypeSectionHelper = ( get: Get, diff --git a/web-client/src/presenter/computeds/confirmInitiateServiceModalHelper.ts b/web-client/src/presenter/computeds/confirmInitiateServiceModalHelper.ts index 0c8234d3657..33481721c98 100644 --- a/web-client/src/presenter/computeds/confirmInitiateServiceModalHelper.ts +++ b/web-client/src/presenter/computeds/confirmInitiateServiceModalHelper.ts @@ -9,7 +9,7 @@ import { uniqBy } from 'lodash'; * @returns {object} the computed values */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const confirmInitiateServiceModalHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/contactsHelper.ts b/web-client/src/presenter/computeds/contactsHelper.ts index 2a3be4f68d5..2919dccead3 100644 --- a/web-client/src/presenter/computeds/contactsHelper.ts +++ b/web-client/src/presenter/computeds/contactsHelper.ts @@ -10,7 +10,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * view options */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const contactsHelper = ( get: Get, diff --git a/web-client/src/presenter/computeds/correspondenceViewerHelper.ts b/web-client/src/presenter/computeds/correspondenceViewerHelper.ts index 51e4995cb5a..6991cd39861 100644 --- a/web-client/src/presenter/computeds/correspondenceViewerHelper.ts +++ b/web-client/src/presenter/computeds/correspondenceViewerHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const correspondenceViewerHelper = (get: Get): any => { const permissions = get(state.permissions); const docketNumber = get(state.caseDetail.docketNumber); diff --git a/web-client/src/presenter/computeds/createMessageModalHelper.ts b/web-client/src/presenter/computeds/createMessageModalHelper.ts index a60dbe99abe..2bab5ce36c5 100644 --- a/web-client/src/presenter/computeds/createMessageModalHelper.ts +++ b/web-client/src/presenter/computeds/createMessageModalHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const createMessageModalHelper = (get: Get): any => { const users = get(state.users); diff --git a/web-client/src/presenter/computeds/createOrderHelper.ts b/web-client/src/presenter/computeds/createOrderHelper.ts index 47836b63b79..83842ee9702 100644 --- a/web-client/src/presenter/computeds/createOrderHelper.ts +++ b/web-client/src/presenter/computeds/createOrderHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const createOrderHelper = ( diff --git a/web-client/src/presenter/computeds/createPractitionerUserHelper.ts b/web-client/src/presenter/computeds/createPractitionerUserHelper.ts index 01b608371e6..10a56a0c5ed 100644 --- a/web-client/src/presenter/computeds/createPractitionerUserHelper.ts +++ b/web-client/src/presenter/computeds/createPractitionerUserHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const createPractitionerUserHelper = (get: Get): any => { const { barNumber, originalEmail, practiceType } = get(state.form); diff --git a/web-client/src/presenter/computeds/customCaseReportHelper.ts b/web-client/src/presenter/computeds/customCaseReportHelper.ts index bcc2710ef4e..844649748b7 100644 --- a/web-client/src/presenter/computeds/customCaseReportHelper.ts +++ b/web-client/src/presenter/computeds/customCaseReportHelper.ts @@ -12,7 +12,7 @@ import { } from '@web-api/business/useCases/caseInventoryReport/getCustomCaseReportInteractor'; import { ClientApplicationContext } from '@web-client/applicationContext'; import { FORMATS } from '@shared/business/utilities/DateHandler'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { InputOption } from '@web-client/ustc-ui/Utils/types'; import { sortBy } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/dashboardExternalHelper.ts b/web-client/src/presenter/computeds/dashboardExternalHelper.ts index bef42a7d443..8b2e1860d4c 100644 --- a/web-client/src/presenter/computeds/dashboardExternalHelper.ts +++ b/web-client/src/presenter/computeds/dashboardExternalHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const dashboardExternalHelper = ( diff --git a/web-client/src/presenter/computeds/docketEntryQcHelper.ts b/web-client/src/presenter/computeds/docketEntryQcHelper.ts index b5c7042e496..c45f9944cdd 100644 --- a/web-client/src/presenter/computeds/docketEntryQcHelper.ts +++ b/web-client/src/presenter/computeds/docketEntryQcHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const docketEntryQcHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/docketRecordHelper.ts b/web-client/src/presenter/computeds/docketRecordHelper.ts index 5bfa18e95dc..497caeef32e 100644 --- a/web-client/src/presenter/computeds/docketRecordHelper.ts +++ b/web-client/src/presenter/computeds/docketRecordHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const docketRecordHelper = ( diff --git a/web-client/src/presenter/computeds/documentSigningHelper.ts b/web-client/src/presenter/computeds/documentSigningHelper.ts index 9dceb83858d..825055841c5 100644 --- a/web-client/src/presenter/computeds/documentSigningHelper.ts +++ b/web-client/src/presenter/computeds/documentSigningHelper.ts @@ -6,7 +6,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @param {*} get cerebral get function * @returns {object} object of document signature helper properties */ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const documentSigningHelper = (get: Get): any => { const signatureData = get(state.pdfForSigning.signatureData); const currentPageNumber = get(state.pdfForSigning.pageNumber); diff --git a/web-client/src/presenter/computeds/documentViewerHelper.ts b/web-client/src/presenter/computeds/documentViewerHelper.ts index 70e97e134ef..026ac2e2438 100644 --- a/web-client/src/presenter/computeds/documentViewerHelper.ts +++ b/web-client/src/presenter/computeds/documentViewerHelper.ts @@ -5,7 +5,7 @@ import { getShowNotServedForDocument } from './getShowNotServedForDocument'; import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const documentViewerHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/documentViewerLinksHelper.ts b/web-client/src/presenter/computeds/documentViewerLinksHelper.ts index 10d96ab3b70..bda070d5cf6 100644 --- a/web-client/src/presenter/computeds/documentViewerLinksHelper.ts +++ b/web-client/src/presenter/computeds/documentViewerLinksHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const documentViewerLinksHelper = (get: Get): any => { const caseDetail = get(state.caseDetail); const viewerDocumentToDisplay = get(state.viewerDocumentToDisplay); diff --git a/web-client/src/presenter/computeds/draftDocumentViewerHelper.ts b/web-client/src/presenter/computeds/draftDocumentViewerHelper.ts index 873a20ab2a3..df5ef7ec568 100644 --- a/web-client/src/presenter/computeds/draftDocumentViewerHelper.ts +++ b/web-client/src/presenter/computeds/draftDocumentViewerHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const draftDocumentViewerHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/editDocketEntryMetaHelper.ts b/web-client/src/presenter/computeds/editDocketEntryMetaHelper.ts index 3a6e937f41f..efebc75d415 100644 --- a/web-client/src/presenter/computeds/editDocketEntryMetaHelper.ts +++ b/web-client/src/presenter/computeds/editDocketEntryMetaHelper.ts @@ -3,7 +3,7 @@ import { getOptionsForCategory } from './selectDocumentTypeHelper'; import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const editDocketEntryMetaHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/editPetitionerInformationHelper.ts b/web-client/src/presenter/computeds/editPetitionerInformationHelper.ts index 044036dd811..c1bd3518c49 100644 --- a/web-client/src/presenter/computeds/editPetitionerInformationHelper.ts +++ b/web-client/src/presenter/computeds/editPetitionerInformationHelper.ts @@ -9,7 +9,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} object containing the view settings */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const editPetitionerInformationHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/editStatisticFormHelper.ts b/web-client/src/presenter/computeds/editStatisticFormHelper.ts index 85c67a2496d..e981ccf53dc 100644 --- a/web-client/src/presenter/computeds/editStatisticFormHelper.ts +++ b/web-client/src/presenter/computeds/editStatisticFormHelper.ts @@ -8,7 +8,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} edit statistic form helper fields */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const editStatisticFormHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/externalConsolidatedCaseGroupHelper.ts b/web-client/src/presenter/computeds/externalConsolidatedCaseGroupHelper.ts index 0246c7ff66b..6ff32cf640e 100644 --- a/web-client/src/presenter/computeds/externalConsolidatedCaseGroupHelper.ts +++ b/web-client/src/presenter/computeds/externalConsolidatedCaseGroupHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const externalConsolidatedCaseGroupHelper = ( diff --git a/web-client/src/presenter/computeds/fileDocumentHelper.ts b/web-client/src/presenter/computeds/fileDocumentHelper.ts index f81d9cd372a..e624c0e159b 100644 --- a/web-client/src/presenter/computeds/fileDocumentHelper.ts +++ b/web-client/src/presenter/computeds/fileDocumentHelper.ts @@ -1,7 +1,7 @@ import { Case } from '@shared/business/entities/cases/Case'; import { ClientApplicationContext } from '@web-client/applicationContext'; import { GENERATION_TYPES } from '@web-client/getConstants'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { ROLES } from '@shared/business/entities/EntityConstants'; import { getFilerParties } from './getFilerParties'; import { getSupportingDocumentTypeList } from './addDocketEntryHelper'; diff --git a/web-client/src/presenter/computeds/fileUploadStatusHelper.ts b/web-client/src/presenter/computeds/fileUploadStatusHelper.ts index 4d27d3ed83c..dfe9a6e1a57 100644 --- a/web-client/src/presenter/computeds/fileUploadStatusHelper.ts +++ b/web-client/src/presenter/computeds/fileUploadStatusHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import { throttle } from 'lodash'; diff --git a/web-client/src/presenter/computeds/filingPartiesFormHelper.ts b/web-client/src/presenter/computeds/filingPartiesFormHelper.ts index 517a6702beb..46188440447 100644 --- a/web-client/src/presenter/computeds/filingPartiesFormHelper.ts +++ b/web-client/src/presenter/computeds/filingPartiesFormHelper.ts @@ -2,7 +2,7 @@ import { DocketEntry } from '../../../../shared/src/business/entities/DocketEntr import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const filingPartiesFormHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/formattedCaseDeadlines.ts b/web-client/src/presenter/computeds/formattedCaseDeadlines.ts index c6a8b3260df..7c763d3b675 100644 --- a/web-client/src/presenter/computeds/formattedCaseDeadlines.ts +++ b/web-client/src/presenter/computeds/formattedCaseDeadlines.ts @@ -24,7 +24,7 @@ const formatCaseDeadline = (applicationContext, caseDeadline) => { }; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const formattedCaseDeadlines = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/formattedCaseDetail.ts b/web-client/src/presenter/computeds/formattedCaseDetail.ts index dcae982cd60..e83657675a2 100644 --- a/web-client/src/presenter/computeds/formattedCaseDetail.ts +++ b/web-client/src/presenter/computeds/formattedCaseDetail.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const formattedOpenCases = ( diff --git a/web-client/src/presenter/computeds/formattedCaseMessages.ts b/web-client/src/presenter/computeds/formattedCaseMessages.ts index 9e69c6e2008..e7592521bed 100644 --- a/web-client/src/presenter/computeds/formattedCaseMessages.ts +++ b/web-client/src/presenter/computeds/formattedCaseMessages.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { getFormattedMessages } from '../utilities/processFormattedMessages'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/formattedDashboardTrialSessions.ts b/web-client/src/presenter/computeds/formattedDashboardTrialSessions.ts index da316c8cf73..ac5048471f0 100644 --- a/web-client/src/presenter/computeds/formattedDashboardTrialSessions.ts +++ b/web-client/src/presenter/computeds/formattedDashboardTrialSessions.ts @@ -9,7 +9,7 @@ export const formatSession = (session, applicationContext) => { }; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const formattedDashboardTrialSessions = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/formattedDocketEntries.ts b/web-client/src/presenter/computeds/formattedDocketEntries.ts index 1beeafe4d2b..8098d44b000 100644 --- a/web-client/src/presenter/computeds/formattedDocketEntries.ts +++ b/web-client/src/presenter/computeds/formattedDocketEntries.ts @@ -1,7 +1,7 @@ /* eslint-disable complexity */ import { ClientApplicationContext } from '@web-client/applicationContext'; import { DocketEntry } from '@shared/business/entities/DocketEntry'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { computeIsNotServedDocument } from '@shared/business/utilities/getFormattedCaseDetail'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/formattedDocument.ts b/web-client/src/presenter/computeds/formattedDocument.ts index 9bd4ed80c67..4a1da1d4add 100644 --- a/web-client/src/presenter/computeds/formattedDocument.ts +++ b/web-client/src/presenter/computeds/formattedDocument.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const formattedDocument = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/formattedEligibleCasesHelper.ts b/web-client/src/presenter/computeds/formattedEligibleCasesHelper.ts index 1022336f102..e74780ffd14 100644 --- a/web-client/src/presenter/computeds/formattedEligibleCasesHelper.ts +++ b/web-client/src/presenter/computeds/formattedEligibleCasesHelper.ts @@ -79,7 +79,7 @@ const compareTrialSessionEligibleCases = eligibleCases => { }; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const formattedEligibleCasesHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/formattedMessageDetail.ts b/web-client/src/presenter/computeds/formattedMessageDetail.ts index 8e45d01de41..181a021b3dc 100644 --- a/web-client/src/presenter/computeds/formattedMessageDetail.ts +++ b/web-client/src/presenter/computeds/formattedMessageDetail.ts @@ -26,7 +26,7 @@ const formatMessage = ({ applicationContext, caseDetail, message }) => { }; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const formattedMessageDetail = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/formattedMessages.ts b/web-client/src/presenter/computeds/formattedMessages.ts index b2653231f7f..95e6af09fbc 100644 --- a/web-client/src/presenter/computeds/formattedMessages.ts +++ b/web-client/src/presenter/computeds/formattedMessages.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { MessageResult } from '@shared/business/entities/MessageResult'; import { applyFiltersToCompletedMessages, diff --git a/web-client/src/presenter/computeds/formattedPendingItems.ts b/web-client/src/presenter/computeds/formattedPendingItems.ts index dae1643dcb6..2ac55c9f30b 100644 --- a/web-client/src/presenter/computeds/formattedPendingItems.ts +++ b/web-client/src/presenter/computeds/formattedPendingItems.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { PendingItemFormatted } from '@shared/business/utilities/formatPendingItem'; import { state } from '@web-client/presenter/app.cerebral'; import qs from 'qs'; diff --git a/web-client/src/presenter/computeds/formattedTrialSessionDetails.ts b/web-client/src/presenter/computeds/formattedTrialSessionDetails.ts index c180ea278a0..cd10c3e259f 100644 --- a/web-client/src/presenter/computeds/formattedTrialSessionDetails.ts +++ b/web-client/src/presenter/computeds/formattedTrialSessionDetails.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { FormattedTrialSessionDetailsType } from '@shared/business/utilities/getFormattedTrialSessionDetails'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { isEmpty, isEqual } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/formattedTrialSessions.ts b/web-client/src/presenter/computeds/formattedTrialSessions.ts index 24834e754db..01a5cf40350 100644 --- a/web-client/src/presenter/computeds/formattedTrialSessions.ts +++ b/web-client/src/presenter/computeds/formattedTrialSessions.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { RawTrialSession } from '@shared/business/entities/trialSessions/TrialSession'; import { createDateAtStartOfWeekEST } from '../../../../shared/src/business/utilities/DateHandler'; import { diff --git a/web-client/src/presenter/computeds/formattedWorkQueue.ts b/web-client/src/presenter/computeds/formattedWorkQueue.ts index 8fd5fcf8eec..5f8979a351f 100644 --- a/web-client/src/presenter/computeds/formattedWorkQueue.ts +++ b/web-client/src/presenter/computeds/formattedWorkQueue.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { DocketEntry } from '../../../../shared/src/business/entities/DocketEntry'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { RawWorkItem } from '@shared/business/entities/WorkItem'; import { capitalize, cloneDeep, map, memoize, orderBy } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/headerHelper.ts b/web-client/src/presenter/computeds/headerHelper.ts index 9213395f378..b279bcec473 100644 --- a/web-client/src/presenter/computeds/headerHelper.ts +++ b/web-client/src/presenter/computeds/headerHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const headerHelper = ( diff --git a/web-client/src/presenter/computeds/headerPublicHelper.ts b/web-client/src/presenter/computeds/headerPublicHelper.ts index f8ce775032e..13c77f3e6a0 100644 --- a/web-client/src/presenter/computeds/headerPublicHelper.ts +++ b/web-client/src/presenter/computeds/headerPublicHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const headerPublicHelper = ( diff --git a/web-client/src/presenter/computeds/internalPetitionPartiesHelper.ts b/web-client/src/presenter/computeds/internalPetitionPartiesHelper.ts index 123dec78be1..b30842ebf0e 100644 --- a/web-client/src/presenter/computeds/internalPetitionPartiesHelper.ts +++ b/web-client/src/presenter/computeds/internalPetitionPartiesHelper.ts @@ -204,7 +204,7 @@ export const getOptionsForContact = ({ PARTY_TYPES, partyType }) => { * view options */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const internalPetitionPartiesHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/internalTypesHelper.ts b/web-client/src/presenter/computeds/internalTypesHelper.ts index 78f0f735f57..7c9a63a31db 100644 --- a/web-client/src/presenter/computeds/internalTypesHelper.ts +++ b/web-client/src/presenter/computeds/internalTypesHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { flatten, orderBy, values } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/loadingHelper.ts b/web-client/src/presenter/computeds/loadingHelper.ts index ca383ad6ee0..ed3c51f5111 100644 --- a/web-client/src/presenter/computeds/loadingHelper.ts +++ b/web-client/src/presenter/computeds/loadingHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const loadingHelper = (get: Get): { pageIsInterstitial: boolean } => { const currentPage = get(state.currentPage); const pageIsInterstitial = currentPage === 'Interstitial'; diff --git a/web-client/src/presenter/computeds/menuHelper.ts b/web-client/src/presenter/computeds/menuHelper.ts index e12cc531b2d..81ebde71371 100644 --- a/web-client/src/presenter/computeds/menuHelper.ts +++ b/web-client/src/presenter/computeds/menuHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const menuHelper = (get: Get): any => { const isAccountMenuOpen = get(state.navigation.openMenu) === 'AccountMenu'; const isReportsMenuOpen = get(state.navigation.openMenu) === 'ReportsMenu'; diff --git a/web-client/src/presenter/computeds/messageDocumentHelper.ts b/web-client/src/presenter/computeds/messageDocumentHelper.ts index 43f286e8edc..49f6a121f4f 100644 --- a/web-client/src/presenter/computeds/messageDocumentHelper.ts +++ b/web-client/src/presenter/computeds/messageDocumentHelper.ts @@ -5,7 +5,7 @@ import { getShowNotServedForDocument } from './getShowNotServedForDocument'; import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const messageDocumentHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/messageModalHelper.ts b/web-client/src/presenter/computeds/messageModalHelper.ts index 28cc4be40eb..4eca2a29ce2 100644 --- a/web-client/src/presenter/computeds/messageModalHelper.ts +++ b/web-client/src/presenter/computeds/messageModalHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const messageModalHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/messagesHelper.ts b/web-client/src/presenter/computeds/messagesHelper.ts index 11791a0b52c..82533ae8ca8 100644 --- a/web-client/src/presenter/computeds/messagesHelper.ts +++ b/web-client/src/presenter/computeds/messagesHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { capitalize } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/messagesIndividualInboxHelper.ts b/web-client/src/presenter/computeds/messagesIndividualInboxHelper.ts index 00781ba920f..c939ffb6a23 100644 --- a/web-client/src/presenter/computeds/messagesIndividualInboxHelper.ts +++ b/web-client/src/presenter/computeds/messagesIndividualInboxHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const messagesIndividualInboxHelper = ( diff --git a/web-client/src/presenter/computeds/myAccountHelper.ts b/web-client/src/presenter/computeds/myAccountHelper.ts index c906c3d808c..576d4664a90 100644 --- a/web-client/src/presenter/computeds/myAccountHelper.ts +++ b/web-client/src/presenter/computeds/myAccountHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const myAccountHelper = ( diff --git a/web-client/src/presenter/computeds/noticeStatusHelper.ts b/web-client/src/presenter/computeds/noticeStatusHelper.ts index eff47c43165..e978d3fcefa 100644 --- a/web-client/src/presenter/computeds/noticeStatusHelper.ts +++ b/web-client/src/presenter/computeds/noticeStatusHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const noticeStatusHelper = (get: Get): { percentComplete: number } => { const { casesProcessed, totalCases } = get(state.noticeStatusState); diff --git a/web-client/src/presenter/computeds/orderTypesHelper.ts b/web-client/src/presenter/computeds/orderTypesHelper.ts index 8e217666701..d369852cb56 100644 --- a/web-client/src/presenter/computeds/orderTypesHelper.ts +++ b/web-client/src/presenter/computeds/orderTypesHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const orderTypesHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/paperDocketEntryHelper.ts b/web-client/src/presenter/computeds/paperDocketEntryHelper.ts index 5948e7b2428..0d654c5e82c 100644 --- a/web-client/src/presenter/computeds/paperDocketEntryHelper.ts +++ b/web-client/src/presenter/computeds/paperDocketEntryHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const paperDocketEntryHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/paperServiceStatusHelper.ts b/web-client/src/presenter/computeds/paperServiceStatusHelper.ts index 13ab532946c..9f4d406259b 100644 --- a/web-client/src/presenter/computeds/paperServiceStatusHelper.ts +++ b/web-client/src/presenter/computeds/paperServiceStatusHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const paperServiceStatusHelper = ( get: Get, ): { percentComplete: number } => { diff --git a/web-client/src/presenter/computeds/partiesInformationHelper.ts b/web-client/src/presenter/computeds/partiesInformationHelper.ts index 31584598ec0..7c522dc70de 100644 --- a/web-client/src/presenter/computeds/partiesInformationHelper.ts +++ b/web-client/src/presenter/computeds/partiesInformationHelper.ts @@ -49,7 +49,7 @@ export const getCanEditPetitioner = ({ }; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const partiesInformationHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/pdfSignerHelper.ts b/web-client/src/presenter/computeds/pdfSignerHelper.ts index 4329e88ad67..0fe9a530c1f 100644 --- a/web-client/src/presenter/computeds/pdfSignerHelper.ts +++ b/web-client/src/presenter/computeds/pdfSignerHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const pdfSignerHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/pendingReportListHelper.ts b/web-client/src/presenter/computeds/pendingReportListHelper.ts index a072d0d53a1..37aa174e786 100644 --- a/web-client/src/presenter/computeds/pendingReportListHelper.ts +++ b/web-client/src/presenter/computeds/pendingReportListHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const pendingReportListHelper = ( diff --git a/web-client/src/presenter/computeds/petitionQcHelper.ts b/web-client/src/presenter/computeds/petitionQcHelper.ts index 6add803da91..4197c26867f 100644 --- a/web-client/src/presenter/computeds/petitionQcHelper.ts +++ b/web-client/src/presenter/computeds/petitionQcHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const petitionQcHelper = ( diff --git a/web-client/src/presenter/computeds/practitionerDetailHelper.ts b/web-client/src/presenter/computeds/practitionerDetailHelper.ts index 4890a5d4a58..86d30f3d059 100644 --- a/web-client/src/presenter/computeds/practitionerDetailHelper.ts +++ b/web-client/src/presenter/computeds/practitionerDetailHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const practitionerDetailHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/practitionerDocumentationFormHelper.ts b/web-client/src/presenter/computeds/practitionerDocumentationFormHelper.ts index 8e8aae9b560..4cf98c438f6 100644 --- a/web-client/src/presenter/computeds/practitionerDocumentationFormHelper.ts +++ b/web-client/src/presenter/computeds/practitionerDocumentationFormHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const practitionerDocumentationFormHelper = (get: Get): any => { const documentationCategory = get(state.form.categoryType); diff --git a/web-client/src/presenter/computeds/practitionerDocumentationHelper.ts b/web-client/src/presenter/computeds/practitionerDocumentationHelper.ts index aeada824454..5043632aeb5 100644 --- a/web-client/src/presenter/computeds/practitionerDocumentationHelper.ts +++ b/web-client/src/presenter/computeds/practitionerDocumentationHelper.ts @@ -4,7 +4,7 @@ import { state } from '@web-client/presenter/app.cerebral'; const { DESCENDING } = getConstants(); import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const practitionerDocumentationHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/practitionerInformationHelper.ts b/web-client/src/presenter/computeds/practitionerInformationHelper.ts index ef5389b5b0f..3a0e7368bbf 100644 --- a/web-client/src/presenter/computeds/practitionerInformationHelper.ts +++ b/web-client/src/presenter/computeds/practitionerInformationHelper.ts @@ -2,7 +2,7 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const practitionerInformationHelper = (get: Get): any => { const permissions = get(state.permissions); diff --git a/web-client/src/presenter/computeds/practitionerSearchFormHelper.ts b/web-client/src/presenter/computeds/practitionerSearchFormHelper.ts index d57fd5e0fad..7dfc68bb1b9 100644 --- a/web-client/src/presenter/computeds/practitionerSearchFormHelper.ts +++ b/web-client/src/presenter/computeds/practitionerSearchFormHelper.ts @@ -1,7 +1,7 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const practitionerSearchFormHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/printPaperServiceHelper.ts b/web-client/src/presenter/computeds/printPaperServiceHelper.ts index 5f32aa4e9cf..4da6b19b1c6 100644 --- a/web-client/src/presenter/computeds/printPaperServiceHelper.ts +++ b/web-client/src/presenter/computeds/printPaperServiceHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const printPaperServiceHelper = (get: Get): any => { const caseDetail = get(state.caseDetail); const docketEntryId = get(state.docketEntryId); diff --git a/web-client/src/presenter/computeds/recentMessagesHelper.ts b/web-client/src/presenter/computeds/recentMessagesHelper.ts index 605a1457215..aec47a25632 100644 --- a/web-client/src/presenter/computeds/recentMessagesHelper.ts +++ b/web-client/src/presenter/computeds/recentMessagesHelper.ts @@ -2,7 +2,7 @@ import { getFormattedMessages } from '../utilities/processFormattedMessages'; import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const recentMessagesHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/removeFromTrialSessionModalHelper.ts b/web-client/src/presenter/computeds/removeFromTrialSessionModalHelper.ts index 5afdb6416ae..87502ed3ff9 100644 --- a/web-client/src/presenter/computeds/removeFromTrialSessionModalHelper.ts +++ b/web-client/src/presenter/computeds/removeFromTrialSessionModalHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const removeFromTrialSessionModalHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/reportMenuHelper.ts b/web-client/src/presenter/computeds/reportMenuHelper.ts index 604c5c65590..c025746ef65 100644 --- a/web-client/src/presenter/computeds/reportMenuHelper.ts +++ b/web-client/src/presenter/computeds/reportMenuHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const reportMenuHelper = (get: Get): any => { const currentPage = get(state.currentPage); const permissions = get(state.permissions); diff --git a/web-client/src/presenter/computeds/reviewSavedPetitionHelper.ts b/web-client/src/presenter/computeds/reviewSavedPetitionHelper.ts index 610df44e5e5..7e7193fdf6f 100644 --- a/web-client/src/presenter/computeds/reviewSavedPetitionHelper.ts +++ b/web-client/src/presenter/computeds/reviewSavedPetitionHelper.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { DocketEntry } from '@shared/business/entities/DocketEntry'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { formatStatistic } from './statisticsHelper'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/scanBatchPreviewerHelper.ts b/web-client/src/presenter/computeds/scanBatchPreviewerHelper.ts index 5e38ba55220..30313eaf5cc 100644 --- a/web-client/src/presenter/computeds/scanBatchPreviewerHelper.ts +++ b/web-client/src/presenter/computeds/scanBatchPreviewerHelper.ts @@ -2,7 +2,7 @@ import { getScanModeLabel } from '../../utilities/getScanModeLabel'; import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const scanBatchPreviewerHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/scanHelper.ts b/web-client/src/presenter/computeds/scanHelper.ts index 1d0e38f1862..b13b8f15e16 100644 --- a/web-client/src/presenter/computeds/scanHelper.ts +++ b/web-client/src/presenter/computeds/scanHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { getScanModeLabel } from '../../utilities/getScanModeLabel'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/sealedCaseDetailHelper.ts b/web-client/src/presenter/computeds/sealedCaseDetailHelper.ts index 9f10be07331..21bab83596f 100644 --- a/web-client/src/presenter/computeds/sealedCaseDetailHelper.ts +++ b/web-client/src/presenter/computeds/sealedCaseDetailHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const sealedCaseDetailHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/serveThirtyDayNoticeModalHelper.ts b/web-client/src/presenter/computeds/serveThirtyDayNoticeModalHelper.ts index 330e05750ee..19d0f5ab60c 100644 --- a/web-client/src/presenter/computeds/serveThirtyDayNoticeModalHelper.ts +++ b/web-client/src/presenter/computeds/serveThirtyDayNoticeModalHelper.ts @@ -1,6 +1,6 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { FORMATS } from '@shared/business/utilities/DateHandler'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const serveThirtyDayNoticeModalHelper = ( diff --git a/web-client/src/presenter/computeds/sessionAssignmentHelper.ts b/web-client/src/presenter/computeds/sessionAssignmentHelper.ts index 25a427d7778..2a9bbc530c6 100644 --- a/web-client/src/presenter/computeds/sessionAssignmentHelper.ts +++ b/web-client/src/presenter/computeds/sessionAssignmentHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const sessionAssignmentHelper = (get: Get): any => { let formattedTrialClerks = get(state.trialClerks); formattedTrialClerks = [ diff --git a/web-client/src/presenter/computeds/setForHearingModalHelper.ts b/web-client/src/presenter/computeds/setForHearingModalHelper.ts index 01d7728b3e7..7c778915e44 100644 --- a/web-client/src/presenter/computeds/setForHearingModalHelper.ts +++ b/web-client/src/presenter/computeds/setForHearingModalHelper.ts @@ -2,7 +2,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { trialSessionsModalHelper } from './addToTrialSessionModalHelper'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const setForHearingModalHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/showAppTimeoutModalHelper.ts b/web-client/src/presenter/computeds/showAppTimeoutModalHelper.ts index 243d92f9c91..f28f9a65430 100644 --- a/web-client/src/presenter/computeds/showAppTimeoutModalHelper.ts +++ b/web-client/src/presenter/computeds/showAppTimeoutModalHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const showAppTimeoutModalHelper = (get: Get): any => { diff --git a/web-client/src/presenter/computeds/startCaseHelper.ts b/web-client/src/presenter/computeds/startCaseHelper.ts index 04dc399d324..40b2a951c94 100644 --- a/web-client/src/presenter/computeds/startCaseHelper.ts +++ b/web-client/src/presenter/computeds/startCaseHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { showContactsHelper } from './showContactsHelper'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/startCaseInternalHelper.ts b/web-client/src/presenter/computeds/startCaseInternalHelper.ts index aff5bf9d54b..0707427eaba 100644 --- a/web-client/src/presenter/computeds/startCaseInternalHelper.ts +++ b/web-client/src/presenter/computeds/startCaseInternalHelper.ts @@ -9,7 +9,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} object containing the view settings */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const startCaseInternalHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/statisticsFormHelper.ts b/web-client/src/presenter/computeds/statisticsFormHelper.ts index 633112b508f..8a254a56be9 100644 --- a/web-client/src/presenter/computeds/statisticsFormHelper.ts +++ b/web-client/src/presenter/computeds/statisticsFormHelper.ts @@ -8,7 +8,7 @@ import { state } from '@web-client/presenter/app.cerebral'; * @returns {object} statistics form helper fields */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const statisticsFormHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/statisticsHelper.ts b/web-client/src/presenter/computeds/statisticsHelper.ts index 6dc5d2d91c0..376a9847b20 100644 --- a/web-client/src/presenter/computeds/statisticsHelper.ts +++ b/web-client/src/presenter/computeds/statisticsHelper.ts @@ -54,7 +54,7 @@ export const formatStatistic = ({ * @returns {object} formatted statistics */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const statisticsHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/templateHelper.ts b/web-client/src/presenter/computeds/templateHelper.ts index b9697a49664..d2b021ba2ed 100644 --- a/web-client/src/presenter/computeds/templateHelper.ts +++ b/web-client/src/presenter/computeds/templateHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const templateHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/trialCitiesHelper.ts b/web-client/src/presenter/computeds/trialCitiesHelper.ts index 574beed21b7..cd98f44f7f2 100644 --- a/web-client/src/presenter/computeds/trialCitiesHelper.ts +++ b/web-client/src/presenter/computeds/trialCitiesHelper.ts @@ -9,7 +9,7 @@ import { findIndex, sortBy } from 'lodash'; * @returns {object} trialCitiesByState */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const trialCitiesHelper = (get: Get, applicationContext: ClientApplicationContext): any => procedureType => { diff --git a/web-client/src/presenter/computeds/trialSessionDetailsHelper.ts b/web-client/src/presenter/computeds/trialSessionDetailsHelper.ts index a957573e591..a4d7f70361c 100644 --- a/web-client/src/presenter/computeds/trialSessionDetailsHelper.ts +++ b/web-client/src/presenter/computeds/trialSessionDetailsHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const trialSessionDetailsHelper = ( diff --git a/web-client/src/presenter/computeds/trialSessionHeaderHelper.ts b/web-client/src/presenter/computeds/trialSessionHeaderHelper.ts index fa3b14771ba..8c3c8df8797 100644 --- a/web-client/src/presenter/computeds/trialSessionHeaderHelper.ts +++ b/web-client/src/presenter/computeds/trialSessionHeaderHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { TrialSession } from '../../../../shared/src/business/entities/trialSessions/TrialSession'; import { isEmpty } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/computeds/trialSessionWorkingCopyHelper.ts b/web-client/src/presenter/computeds/trialSessionWorkingCopyHelper.ts index b0d86664eed..32fc87d911e 100644 --- a/web-client/src/presenter/computeds/trialSessionWorkingCopyHelper.ts +++ b/web-client/src/presenter/computeds/trialSessionWorkingCopyHelper.ts @@ -3,7 +3,7 @@ import { FormattedTrialSessionCase, compareCasesByDocketNumber, } from '@shared/business/utilities/getFormattedTrialSessionDetails'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { TRIAL_STATUS_TYPES } from '@shared/business/entities/EntityConstants'; import { TrialSessionState } from '@web-client/presenter/state/trialSessionState'; import { UserCaseNote } from '@shared/business/entities/notes/UserCaseNote'; diff --git a/web-client/src/presenter/computeds/trialSessionsHelper.ts b/web-client/src/presenter/computeds/trialSessionsHelper.ts index 41a8fe8752e..149911d4d38 100644 --- a/web-client/src/presenter/computeds/trialSessionsHelper.ts +++ b/web-client/src/presenter/computeds/trialSessionsHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const trialSessionsHelper = (get: Get): any => { diff --git a/web-client/src/presenter/computeds/trialSessionsSummaryHelper.ts b/web-client/src/presenter/computeds/trialSessionsSummaryHelper.ts index 9de16ce2954..9ca4180d97e 100644 --- a/web-client/src/presenter/computeds/trialSessionsSummaryHelper.ts +++ b/web-client/src/presenter/computeds/trialSessionsSummaryHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const trialSessionsSummaryHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/updateCaseModalHelper.ts b/web-client/src/presenter/computeds/updateCaseModalHelper.ts index 418afe4ae1e..31f1b6131ae 100644 --- a/web-client/src/presenter/computeds/updateCaseModalHelper.ts +++ b/web-client/src/presenter/computeds/updateCaseModalHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const updateCaseModalHelper = ( diff --git a/web-client/src/presenter/computeds/updatedFilePetitionHelper.ts b/web-client/src/presenter/computeds/updatedFilePetitionHelper.ts index 81851ab66ae..e75447c494e 100644 --- a/web-client/src/presenter/computeds/updatedFilePetitionHelper.ts +++ b/web-client/src/presenter/computeds/updatedFilePetitionHelper.ts @@ -1,5 +1,5 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; interface IBusinessFields { diff --git a/web-client/src/presenter/computeds/userContactEditHelper.ts b/web-client/src/presenter/computeds/userContactEditHelper.ts index ae9bfd58e45..38f895b7f9f 100644 --- a/web-client/src/presenter/computeds/userContactEditHelper.ts +++ b/web-client/src/presenter/computeds/userContactEditHelper.ts @@ -1,7 +1,7 @@ import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const userContactEditHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/userContactEditProgressHelper.ts b/web-client/src/presenter/computeds/userContactEditProgressHelper.ts index 396c70f4aeb..413ea1aeb86 100644 --- a/web-client/src/presenter/computeds/userContactEditProgressHelper.ts +++ b/web-client/src/presenter/computeds/userContactEditProgressHelper.ts @@ -1,6 +1,6 @@ import { state } from '@web-client/presenter/app.cerebral'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const userContactEditProgressHelper = (get: Get): any => { const completedCases = get(state.userContactEditProgress.completedCases) || 0; const totalCases = get(state.userContactEditProgress.totalCases) || 0; diff --git a/web-client/src/presenter/computeds/viewAllDocumentsHelper.ts b/web-client/src/presenter/computeds/viewAllDocumentsHelper.ts index 1a90a7504e1..49975c29118 100644 --- a/web-client/src/presenter/computeds/viewAllDocumentsHelper.ts +++ b/web-client/src/presenter/computeds/viewAllDocumentsHelper.ts @@ -5,7 +5,7 @@ import { import { state } from '@web-client/presenter/app.cerebral'; import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; export const viewAllDocumentsHelper = ( get: Get, applicationContext: ClientApplicationContext, diff --git a/web-client/src/presenter/computeds/viewCounselHelper.ts b/web-client/src/presenter/computeds/viewCounselHelper.ts index 0cc6f1028f1..cac49110b07 100644 --- a/web-client/src/presenter/computeds/viewCounselHelper.ts +++ b/web-client/src/presenter/computeds/viewCounselHelper.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; export const viewCounselHelper = (get: Get): any => { diff --git a/web-client/src/presenter/computeds/workQueueHelper.ts b/web-client/src/presenter/computeds/workQueueHelper.ts index d29e6bd65c8..9aa26bf60fc 100644 --- a/web-client/src/presenter/computeds/workQueueHelper.ts +++ b/web-client/src/presenter/computeds/workQueueHelper.ts @@ -1,7 +1,7 @@ /* eslint-disable complexity */ import { ClientApplicationContext } from '@web-client/applicationContext'; -import { Get } from 'cerebral'; +import { Get } from '../../utilities/cerebralWrapper'; import { capitalize } from 'lodash'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/presenter/errors/ActionError.ts b/web-client/src/presenter/errors/ActionError.ts index 5d91fbb7430..c6eb1fe4a8c 100644 --- a/web-client/src/presenter/errors/ActionError.ts +++ b/web-client/src/presenter/errors/ActionError.ts @@ -1,4 +1,4 @@ -import { CerebralError } from 'cerebral'; +import { CerebralError } from '../../utilities/cerebralWrapper'; export class ActionError extends CerebralError { public title: string; public message: string; diff --git a/web-client/src/presenter/sequences/JudgeActivityReport/gotoJudgeActivityReportSequence.ts b/web-client/src/presenter/sequences/JudgeActivityReport/gotoJudgeActivityReportSequence.ts index 800fc5af7ad..58b580dc60a 100644 --- a/web-client/src/presenter/sequences/JudgeActivityReport/gotoJudgeActivityReportSequence.ts +++ b/web-client/src/presenter/sequences/JudgeActivityReport/gotoJudgeActivityReportSequence.ts @@ -7,7 +7,7 @@ import { getJudgeForCurrentUserAction } from '@web-client/presenter/actions/getJ import { getPendingMotionDocketEntriesForCurrentJudgeAction } from '@web-client/presenter/actions/PendingMotion/getPendingMotionDocketEntriesForCurrentJudgeAction'; import { getSubmittedAndCavCasesByJudgeAction } from '@web-client/presenter/actions/JudgeActivityReport/getSubmittedAndCavCasesByJudgeAction'; import { getUsersInSectionAction } from '../../actions/getUsersInSectionAction'; -import { parallel } from 'cerebral'; +import { parallel } from '../../../utilities/cerebralWrapper'; import { setAllAndCurrentJudgesAction } from '../../actions/setAllAndCurrentJudgesAction'; import { setCavAndSubmittedCasesAction } from '@web-client/presenter/actions/JudgeActivityReport/setCavAndSubmittedCasesAction'; import { setDefaultJudgeNameBasedOnUserAction } from '../../actions/JudgeActivityReport/setDefaultJudgeNameBasedOnUserAction'; diff --git a/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityReportSequence.ts b/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityReportSequence.ts index 2bf764ac720..05a2188343a 100644 --- a/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityReportSequence.ts +++ b/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityReportSequence.ts @@ -4,7 +4,7 @@ import { clearJudgeActivityReportStatisticsDataAction } from '@web-client/presen import { clearJudgeActivityReportStatisticsFiltersAction } from '@web-client/presenter/actions/JudgeActivityReport/clearJudgeActivityReportStatisticsFiltersAction'; import { getPendingMotionDocketEntriesAction } from '@web-client/presenter/actions/PendingMotion/getPendingMotionDocketEntriesAction'; import { getSubmittedAndCavCasesByJudgeAction } from '@web-client/presenter/actions/JudgeActivityReport/getSubmittedAndCavCasesByJudgeAction'; -import { parallel } from 'cerebral'; +import { parallel } from '../../../utilities/cerebralWrapper'; import { resetHasUserSubmittedFormAction } from '@web-client/presenter/actions/JudgeActivityReport/resetHasUserSubmittedFormAction'; import { setAlertErrorAction } from '../../actions/setAlertErrorAction'; import { setCavAndSubmittedCasesAction } from '@web-client/presenter/actions/JudgeActivityReport/setCavAndSubmittedCasesAction'; diff --git a/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityStatisticsReportSequence.ts b/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityStatisticsReportSequence.ts index 83a3a6e5215..3eb21f2a427 100644 --- a/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityStatisticsReportSequence.ts +++ b/web-client/src/presenter/sequences/JudgeActivityReport/submitJudgeActivityStatisticsReportSequence.ts @@ -3,7 +3,7 @@ import { clearErrorAlertsAction } from '../../actions/clearErrorAlertsAction'; import { getCasesClosedByJudgeAction } from '../../actions/JudgeActivityReport/getCasesClosedByJudgeAction'; import { getJudgeActivityReportCountsAction } from '../../actions/JudgeActivityReport/getJudgeActivityReportCountsAction'; import { getTrialSessionsForJudgeActivityReportAction } from '../../actions/JudgeActivityReport/getTrialSessionsForJudgeActivityReportAction'; -import { parallel } from 'cerebral'; +import { parallel } from '../../../utilities/cerebralWrapper'; import { setAlertErrorAction } from '../../actions/setAlertErrorAction'; import { setHasUserSubmittedFormAction } from '@web-client/presenter/actions/JudgeActivityReport/setHasUserSubmittedFormAction'; import { setJudgeActivityReportDataAction } from '@web-client/presenter/actions/JudgeActivityReport/setJudgeActivityReportDataAction'; diff --git a/web-client/src/presenter/sequences/Public/gotoPublicPrintableDocketRecordSequence.ts b/web-client/src/presenter/sequences/Public/gotoPublicPrintableDocketRecordSequence.ts index bfe81f9e087..81d28ba8615 100644 --- a/web-client/src/presenter/sequences/Public/gotoPublicPrintableDocketRecordSequence.ts +++ b/web-client/src/presenter/sequences/Public/gotoPublicPrintableDocketRecordSequence.ts @@ -1,7 +1,7 @@ import { clearModalStateAction } from '../../actions/clearModalStateAction'; import { generatePublicDocketRecordPdfUrlAction } from '../../actions/Public/generatePublicDocketRecordPdfUrlAction'; import { getPublicCaseAction } from '../../actions/Public/getPublicCaseAction'; -import { sequence } from 'cerebral'; +import { sequence } from '../../../utilities/cerebralWrapper'; import { setCaseAction } from '../../actions/setCaseAction'; import { setPdfPreviewUrlSequence } from '../setPdfPreviewUrlSequence'; import { setShowModalFactoryAction } from '../../actions/setShowModalFactoryAction'; diff --git a/web-client/src/presenter/sequences/chooseWizardStepSequence.ts b/web-client/src/presenter/sequences/chooseWizardStepSequence.ts index f4c4f821ee1..9908c6afe31 100644 --- a/web-client/src/presenter/sequences/chooseWizardStepSequence.ts +++ b/web-client/src/presenter/sequences/chooseWizardStepSequence.ts @@ -1,4 +1,4 @@ -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { setWizardStepAction } from '../actions/setWizardStepAction'; import { startWebSocketConnectionSequenceDecorator } from '../utilities/startWebSocketConnectionSequenceDecorator'; diff --git a/web-client/src/presenter/sequences/gotoAdvancedSearchSequence.ts b/web-client/src/presenter/sequences/gotoAdvancedSearchSequence.ts index ad1795ec979..f50a5e758c3 100644 --- a/web-client/src/presenter/sequences/gotoAdvancedSearchSequence.ts +++ b/web-client/src/presenter/sequences/gotoAdvancedSearchSequence.ts @@ -3,7 +3,7 @@ import { closeMobileMenuAction } from '../actions/closeMobileMenuAction'; import { defaultAdvancedSearchFormAction } from '../actions/AdvancedSearch/defaultAdvancedSearchFormAction'; import { getOpinionTypesAction } from '../actions/getOpinionTypesAction'; import { getUsersInSectionAction } from '../actions/getUsersInSectionAction'; -import { parallel } from 'cerebral'; +import { parallel } from '../../utilities/cerebralWrapper'; import { setAllAndCurrentJudgesAction } from '../actions/setAllAndCurrentJudgesAction'; import { setOpinionTypesAction } from '../actions/setOpinionTypesAction'; import { setupCurrentPageAction } from '../actions/setupCurrentPageAction'; diff --git a/web-client/src/presenter/sequences/gotoDashboardSequence.ts b/web-client/src/presenter/sequences/gotoDashboardSequence.ts index 8a9721e130e..76ede52331b 100644 --- a/web-client/src/presenter/sequences/gotoDashboardSequence.ts +++ b/web-client/src/presenter/sequences/gotoDashboardSequence.ts @@ -11,7 +11,7 @@ import { getSubmittedAndCavCasesForCurrentJudgeAction } from '@web-client/presen import { getTrialSessionsForJudgeAction } from '../actions/TrialSession/getTrialSessionsForJudgeAction'; import { navigateToMessagesAction } from '../actions/navigateToMessagesAction'; import { navigateToSectionDocumentQCAction } from '../actions/navigateToSectionDocumentQCAction'; -import { parallel } from 'cerebral'; +import { parallel } from '../../utilities/cerebralWrapper'; import { passAlongJudgeUserAction } from '@web-client/presenter/actions/passAlongJudgeUserAction'; import { runPathForUserRoleAction } from '../actions/runPathForUserRoleAction'; import { setCasesAction } from '../actions/setCasesAction'; diff --git a/web-client/src/presenter/sequences/gotoMessagesSequence.ts b/web-client/src/presenter/sequences/gotoMessagesSequence.ts index 222210a9863..e1147c58e7a 100644 --- a/web-client/src/presenter/sequences/gotoMessagesSequence.ts +++ b/web-client/src/presenter/sequences/gotoMessagesSequence.ts @@ -9,7 +9,7 @@ import { getInboxMessagesForSectionAction } from '../actions/getInboxMessagesFor import { getInboxMessagesForUserAction } from '../actions/getInboxMessagesForUserAction'; import { getOutboxMessagesForSectionAction } from '../actions/getOutboxMessagesForSectionAction'; import { getOutboxMessagesForUserAction } from '../actions/getOutboxMessagesForUserAction'; -import { parallel } from 'cerebral'; +import { parallel } from '../../utilities/cerebralWrapper'; import { resetCacheKeyAction } from '../actions/resetCacheKeyAction'; import { resetSelectedMessageAction } from '@web-client/presenter/actions/Messages/resetSelectedMessageAction'; import { setDefaultTableSortAction } from '../actions/setDefaultTableSortAction'; diff --git a/web-client/src/presenter/sequences/gotoPrintPaperTrialNoticesSequence.ts b/web-client/src/presenter/sequences/gotoPrintPaperTrialNoticesSequence.ts index 55b1034fdc1..4239adffe00 100644 --- a/web-client/src/presenter/sequences/gotoPrintPaperTrialNoticesSequence.ts +++ b/web-client/src/presenter/sequences/gotoPrintPaperTrialNoticesSequence.ts @@ -1,5 +1,5 @@ import { getPaperServicePdfUrlAction } from '@web-client/presenter/actions/TrialSession/getPaperServicePdfUrlAction'; -import { sequence } from 'cerebral'; +import { sequence } from '../../utilities/cerebralWrapper'; import { setAlertWarningAction } from '@web-client/presenter/actions/setAlertWarningAction'; import { setPdfPreviewUrlAction } from '@web-client/presenter/actions/CourtIssuedOrder/setPdfPreviewUrlAction'; import { setTrialSessionCalendarAlertWarningAction } from '@web-client/presenter/actions/TrialSession/setTrialSessionCalendarAlertWarningAction'; diff --git a/web-client/src/presenter/sequences/setPdfPreviewUrlSequence.ts b/web-client/src/presenter/sequences/setPdfPreviewUrlSequence.ts index 37b24430359..5a6caeb8842 100644 --- a/web-client/src/presenter/sequences/setPdfPreviewUrlSequence.ts +++ b/web-client/src/presenter/sequences/setPdfPreviewUrlSequence.ts @@ -1,5 +1,5 @@ import { clearPdfPreviewUrlAction } from '../actions/CourtIssuedOrder/clearPdfPreviewUrlAction'; -import { sequence } from 'cerebral'; +import { sequence } from '../../utilities/cerebralWrapper'; import { setPdfPreviewUrlAction } from '../actions/CourtIssuedOrder/setPdfPreviewUrlAction'; export const setPdfPreviewUrlSequence = sequence([ diff --git a/web-client/src/presenter/sequences/updateTrialSessionCompleteSequence.ts b/web-client/src/presenter/sequences/updateTrialSessionCompleteSequence.ts index 239e29f4dab..faf0084d4c8 100644 --- a/web-client/src/presenter/sequences/updateTrialSessionCompleteSequence.ts +++ b/web-client/src/presenter/sequences/updateTrialSessionCompleteSequence.ts @@ -4,7 +4,7 @@ import { getCompleteTrialSessionAlertSuccessAction } from '../actions/getComplet import { hasPaperAction } from '../actions/hasPaperAction'; import { navigateToPrintPaperTrialNoticesAction } from '@web-client/presenter/actions/TrialSession/navigateToPrintPaperTrialNoticesAction'; import { navigateToTrialSessionDetailAction } from '../actions/TrialSession/navigateToTrialSessionDetailAction'; -import { sequence } from 'cerebral'; +import { sequence } from '../../utilities/cerebralWrapper'; import { setAlertSuccessAction } from '../actions/setAlertSuccessAction'; import { setSaveAlertsForNavigationAction } from '../actions/setSaveAlertsForNavigationAction'; import { unsetWaitingForResponseAction } from '../actions/unsetWaitingForResponseAction'; diff --git a/web-client/src/presenter/test.cerebral.ts b/web-client/src/presenter/test.cerebral.ts index 467360e2828..eea07318532 100644 --- a/web-client/src/presenter/test.cerebral.ts +++ b/web-client/src/presenter/test.cerebral.ts @@ -1,7 +1,7 @@ import { runAction as cerebralRunAction, runCompute as cerebralRunCompute, -} from 'cerebral/test'; +} from '../utilities/cerebralWrapper/test'; import type { ClientState } from '@web-client/presenter/state'; type FakeRunComputeType = ( diff --git a/web-client/src/ustc-ui/Accordion/Accordion.test.tsx b/web-client/src/ustc-ui/Accordion/Accordion.test.tsx index 2da99d5e6dd..96a3fda6d82 100644 --- a/web-client/src/ustc-ui/Accordion/Accordion.test.tsx +++ b/web-client/src/ustc-ui/Accordion/Accordion.test.tsx @@ -1,7 +1,7 @@ import { Accordion, AccordionItem } from './Accordion'; import { Container } from '@cerebral/react'; import { cerebralBindSimpleSetStateSequence } from '../../presenter/sequences/cerebralBindSimpleSetStateSequence'; -import App from 'cerebral'; +import App from '../../utilities/cerebralWrapper'; import React from 'react'; import TestRenderer, { act } from 'react-test-renderer'; diff --git a/web-client/src/ustc-ui/Accordion/Accordion.tsx b/web-client/src/ustc-ui/Accordion/Accordion.tsx index c0dd399978f..a5606161f57 100644 --- a/web-client/src/ustc-ui/Accordion/Accordion.tsx +++ b/web-client/src/ustc-ui/Accordion/Accordion.tsx @@ -7,7 +7,7 @@ import { } from '../Utils/useCerebralState'; import { map } from '../Utils/ElementChildren'; import { pick, uniqueId } from 'lodash'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React, { useState } from 'react'; diff --git a/web-client/src/ustc-ui/BindedSelect/BindedSelect.tsx b/web-client/src/ustc-ui/BindedSelect/BindedSelect.tsx index d39a81b00f7..aec7c24b251 100644 --- a/web-client/src/ustc-ui/BindedSelect/BindedSelect.tsx +++ b/web-client/src/ustc-ui/BindedSelect/BindedSelect.tsx @@ -3,7 +3,7 @@ import { decorateWithPostCallback, useCerebralStateFactory, } from '../Utils/useCerebralState'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React, { useState } from 'react'; diff --git a/web-client/src/ustc-ui/BindedTextarea/BindedTextarea.tsx b/web-client/src/ustc-ui/BindedTextarea/BindedTextarea.tsx index 04a4c0ed6ab..c09584eb785 100644 --- a/web-client/src/ustc-ui/BindedTextarea/BindedTextarea.tsx +++ b/web-client/src/ustc-ui/BindedTextarea/BindedTextarea.tsx @@ -3,7 +3,7 @@ import { decorateWithPostCallback, useCerebralStateFactory, } from '../Utils/useCerebralState'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React, { useState } from 'react'; diff --git a/web-client/src/ustc-ui/DropdownMenu/DropdownMenu.tsx b/web-client/src/ustc-ui/DropdownMenu/DropdownMenu.tsx index d2baf438c32..6817e9ebb54 100644 --- a/web-client/src/ustc-ui/DropdownMenu/DropdownMenu.tsx +++ b/web-client/src/ustc-ui/DropdownMenu/DropdownMenu.tsx @@ -1,6 +1,6 @@ import { Button } from '../Button/Button'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React, { useEffect, useRef } from 'react'; diff --git a/web-client/src/ustc-ui/Overlay/Overlay.tsx b/web-client/src/ustc-ui/Overlay/Overlay.tsx index 63ce2dfbc99..0abdb22074c 100644 --- a/web-client/src/ustc-ui/Overlay/Overlay.tsx +++ b/web-client/src/ustc-ui/Overlay/Overlay.tsx @@ -1,6 +1,6 @@ import { FocusLock } from '../FocusLock/FocusLock'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import React, { useEffect } from 'react'; import ReactDOM from 'react-dom'; diff --git a/web-client/src/ustc-ui/PdfPreview/PdfPreview.tsx b/web-client/src/ustc-ui/PdfPreview/PdfPreview.tsx index faeef58e2c1..26bfe56eb6b 100644 --- a/web-client/src/ustc-ui/PdfPreview/PdfPreview.tsx +++ b/web-client/src/ustc-ui/PdfPreview/PdfPreview.tsx @@ -1,6 +1,6 @@ import { PdfViewer } from './PdfViewer'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/ustc-ui/Tabs/Tabs.cerebral.test.tsx b/web-client/src/ustc-ui/Tabs/Tabs.cerebral.test.tsx index df47da0c87e..1022f8ef34e 100644 --- a/web-client/src/ustc-ui/Tabs/Tabs.cerebral.test.tsx +++ b/web-client/src/ustc-ui/Tabs/Tabs.cerebral.test.tsx @@ -1,7 +1,7 @@ import { Container } from '@cerebral/react'; import { Tab, Tabs } from './Tabs'; import { cerebralBindSimpleSetStateSequence } from '../../presenter/sequences/cerebralBindSimpleSetStateSequence'; -import App from 'cerebral'; +import App from '../../utilities/cerebralWrapper'; import React from 'react'; import TestRenderer, { act } from 'react-test-renderer'; diff --git a/web-client/src/ustc-ui/Tabs/Tabs.tsx b/web-client/src/ustc-ui/Tabs/Tabs.tsx index 10d09f3a8dc..4037481edc5 100644 --- a/web-client/src/ustc-ui/Tabs/Tabs.tsx +++ b/web-client/src/ustc-ui/Tabs/Tabs.tsx @@ -5,7 +5,7 @@ import { useCerebralStateFactory, } from '../Utils/useCerebralState'; import { getDefaultAttribute, map } from '../Utils/ElementChildren'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React, { ReactNode, useState } from 'react'; diff --git a/web-client/src/ustc-ui/Text/TextView.test.tsx b/web-client/src/ustc-ui/Text/TextView.test.tsx index 15bb4144b87..f763096c8d0 100644 --- a/web-client/src/ustc-ui/Text/TextView.test.tsx +++ b/web-client/src/ustc-ui/Text/TextView.test.tsx @@ -1,6 +1,6 @@ import { Container } from '@cerebral/react'; import { TextView } from './TextView'; -import App from 'cerebral'; +import App from '../../utilities/cerebralWrapper'; import React from 'react'; import TestRenderer from 'react-test-renderer'; diff --git a/web-client/src/utilities/cerebralWrapper/Readme.md b/web-client/src/utilities/cerebralWrapper/Readme.md new file mode 100644 index 00000000000..a11736a8336 --- /dev/null +++ b/web-client/src/utilities/cerebralWrapper/Readme.md @@ -0,0 +1,97 @@ +### README for `cerebralWrapper` Module + +## About + +The `cerebralWrapper` module is designed to wrap the functionality of the Cerebral state management library. Given that Cerebral is no longer maintained upstream, this module provides a centralized place in the codebase to manage and mitigate any breakages related to Cerebral. By using this wrapper, we can ensure that our state management code remains robust and maintainable, even as the underlying library becomes outdated. + +## General Direction + +The `cerebralWrapper` module acts as a humble object/local module that serves as a liaison for any state management-related code in our project. This module is intended to be built out in stages and/or as needs arise. The primary goals of this module are: + +1. **Centralized State Management**: Provide a single point of control for all state management-related code, reducing the risk of breakages and inconsistencies. +2. **Flexibility**: Allow for easy integration of fixes or patches, whether by adding custom code within the module, patching the forked version of the legacy Cerebral library, or even switching to a different state management library altogether. +3. **Scalability**: Enable the module to grow and evolve as the project's needs change, ensuring that it remains a robust and reliable solution for state management. + +## Usage + +### Example Usage + +Below is an example of how to use the `cerebralWrapper` module in your project: + +```typescript +import { Get, parallel, props, sequences, state } from './cerebralWrapper'; +import App from './cerebralWrapper'; + +// eslint-disable-next-line import/no-default-export +export default App; +export { parallel, props, sequences, state, Get }; +``` + +### Example Test File + +Here’s an example of how the `cerebralWrapper` module is used in a test file: + +```typescript +import { applicationContext } from '../../applicationContext'; +import { documentViewerLinksHelper as documentViewerLinksHelperComputed } from './documentViewerLinksHelper'; +import { runCompute } from '@web-client/presenter/test.cerebral'; +import { withAppContextDecorator } from '../../../src/withAppContext'; + +describe('documentViewerLinksHelper', () => { + const mockDocketNumber = '101-20'; + const mockDocketEntryId = 'b8947b11-19b3-4c96-b7a1-fa6a5654e2d5'; + + const documentViewerLinksHelper = withAppContextDecorator( + documentViewerLinksHelperComputed, + applicationContext, + ); + + it('should return an empty object when state.viewerDocumentToDisplay is undefined', () => { + const result = runCompute(documentViewerLinksHelper, { + state: { + caseDetail: {}, + viewerDocumentToDisplay: undefined, + }, + }); + + expect(result).toEqual({}); + }); +}); +``` + +test.cerebral.ts +```typescript +import { + runAction as cerebralRunAction, + runCompute as cerebralRunCompute, +} from '../utilities/cerebralWrapper/test'; +import type { ClientState } from '@web-client/presenter/state'; + +type FakeRunComputeType = ( + compute: (get: any) => T, + state: { state: any }, +) => T; +export const runCompute = cerebralRunCompute as unknown as FakeRunComputeType; + +type FakeRunActionType = ( + action: (actionProps: any) => Promise | T, + fixtures: { modules?: { presenter: any }; props?: any; state?: any }, +) => { state: ClientState; props: any; output: T }; +export const runAction = cerebralRunAction as unknown as FakeRunActionType; +``` + +### Future Development + +As the project evolves, the `cerebralWrapper` module will be expanded to include additional functionality and support for various state management scenarios. This may involve: + +- Adding new helper functions and utilities to handle specific state management tasks. +- Patching or extending the forked version of the legacy Cerebral library to address any issues or limitations. + - cerbralWrapper will eventually pull from a fork of legacy lib +- Evaluating and potentially integrating alternative state management libraries to ensure the best possible performance and maintainability. + +By adopting this modular approach, we can ensure that our state management code remains organized, maintainable, and adaptable to future changes. + + +### Importance of Centralized Breakage Mitigation + +Addressing any breakages as they come up in one location, rather than having to search the entire codebase for breakages each time there is a breaking event, is crucial. By leveraging some upfront work to replace all references to the legacy library with the wrapper, we create a more linear path to mitigation in the future. This approach not only simplifies the process of fixing breakages but also provides more options for remediation paths for each breakage event. This centralized approach ensures that our state management remains consistent and easier to maintain over time. \ No newline at end of file diff --git a/web-client/src/utilities/cerebralWrapper/index.ts b/web-client/src/utilities/cerebralWrapper/index.ts new file mode 100644 index 00000000000..25e94982f23 --- /dev/null +++ b/web-client/src/utilities/cerebralWrapper/index.ts @@ -0,0 +1,6 @@ +import { Get, parallel, props, sequences, state } from 'cerebral'; +import App from 'cerebral'; + +// eslint-disable-next-line import/no-default-export +export default App; +export { parallel, props, sequences, state, Get }; diff --git a/web-client/src/utilities/cerebralWrapper/test/index.ts b/web-client/src/utilities/cerebralWrapper/test/index.ts new file mode 100644 index 00000000000..09e61552938 --- /dev/null +++ b/web-client/src/utilities/cerebralWrapper/test/index.ts @@ -0,0 +1,3 @@ +import { runAction, runCompute } from 'cerebral/test'; + +export { runAction, runCompute }; diff --git a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/CaseTitleOrNameSearchField.tsx b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/CaseTitleOrNameSearchField.tsx index 81174edf5d0..f0cabe0f400 100644 --- a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/CaseTitleOrNameSearchField.tsx +++ b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/CaseTitleOrNameSearchField.tsx @@ -1,5 +1,5 @@ import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; export const CaseTitleOrNameSearchField = connect( diff --git a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DateRangeSelect.tsx b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DateRangeSelect.tsx index 792919fd653..6dc1a94484b 100644 --- a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DateRangeSelect.tsx +++ b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DateRangeSelect.tsx @@ -1,5 +1,5 @@ import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DocketNumberSearchField.tsx b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DocketNumberSearchField.tsx index c4a1f681a3d..cea89c4261d 100644 --- a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DocketNumberSearchField.tsx +++ b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/DocketNumberSearchField.tsx @@ -1,5 +1,5 @@ import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; export const DocketNumberSearchField = connect( diff --git a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/JudgeSelect.tsx b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/JudgeSelect.tsx index b805e8e02d1..a2b3065c8c5 100644 --- a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/JudgeSelect.tsx +++ b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/JudgeSelect.tsx @@ -1,6 +1,6 @@ import { BindedSelect } from '../../../ustc-ui/BindedSelect/BindedSelect'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; export const JudgeSelect = connect( diff --git a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/KeywordSearchField.tsx b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/KeywordSearchField.tsx index 0b250c01f9c..d5575bd920b 100644 --- a/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/KeywordSearchField.tsx +++ b/web-client/src/views/AdvancedSearch/AdvancedDocumentSearch/KeywordSearchField.tsx @@ -1,5 +1,5 @@ import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; export const KeywordSearchField = connect( diff --git a/web-client/src/views/CaseDetail/CaseInformation/CaseDetails.tsx b/web-client/src/views/CaseDetail/CaseInformation/CaseDetails.tsx index fa9851707d7..6fcf20c4c0c 100644 --- a/web-client/src/views/CaseDetail/CaseInformation/CaseDetails.tsx +++ b/web-client/src/views/CaseDetail/CaseInformation/CaseDetails.tsx @@ -1,6 +1,6 @@ import { Button } from '../../../ustc-ui/Button/Button'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; export const CaseDetails = connect( diff --git a/web-client/src/views/CaseDetail/CaseInformation/ConsolidatedCases.tsx b/web-client/src/views/CaseDetail/CaseInformation/ConsolidatedCases.tsx index 8299022fd88..9351d0baac6 100644 --- a/web-client/src/views/CaseDetail/CaseInformation/ConsolidatedCases.tsx +++ b/web-client/src/views/CaseDetail/CaseInformation/ConsolidatedCases.tsx @@ -1,7 +1,7 @@ import { CaseLink } from '../../../ustc-ui/CaseLink/CaseLink'; import { Mobile, NonMobile } from '../../../ustc-ui/Responsive/Responsive'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; export const ConsolidatedCases = connect( diff --git a/web-client/src/views/CaseDetail/CaseInformation/DisplayHearings.tsx b/web-client/src/views/CaseDetail/CaseInformation/DisplayHearings.tsx index 592af0b4bae..01fa09242c1 100644 --- a/web-client/src/views/CaseDetail/CaseInformation/DisplayHearings.tsx +++ b/web-client/src/views/CaseDetail/CaseInformation/DisplayHearings.tsx @@ -1,7 +1,7 @@ import { DropdownMenu } from '../../../ustc-ui/DropdownMenu/DropdownMenu'; import { PreformattedText } from '@web-client/ustc-ui/PreformatedText/PreformattedText'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; export const DisplayHearings = connect( diff --git a/web-client/src/views/CaseDetail/CaseInformation/TrialInformation.tsx b/web-client/src/views/CaseDetail/CaseInformation/TrialInformation.tsx index 287b225e7f8..1df9fa72fc5 100644 --- a/web-client/src/views/CaseDetail/CaseInformation/TrialInformation.tsx +++ b/web-client/src/views/CaseDetail/CaseInformation/TrialInformation.tsx @@ -3,7 +3,7 @@ import { DropdownMenu } from '../../../ustc-ui/DropdownMenu/DropdownMenu'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { PreformattedText } from '@web-client/ustc-ui/PreformatedText/PreformattedText'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import React from 'react'; const EditCaseTrialInformationMenu = ({ diff --git a/web-client/src/views/CaseDetail/PetitionPaymentForm.tsx b/web-client/src/views/CaseDetail/PetitionPaymentForm.tsx index 47594cd5b8c..1183add44cf 100644 --- a/web-client/src/views/CaseDetail/PetitionPaymentForm.tsx +++ b/web-client/src/views/CaseDetail/PetitionPaymentForm.tsx @@ -1,7 +1,7 @@ import { DateSelector } from '@web-client/ustc-ui/DateInput/DateSelector'; import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences, state } from '@web-client/presenter/app.cerebral'; import React from 'react'; import classNames from 'classnames'; diff --git a/web-client/src/views/ConfirmInitiateSaveModal.tsx b/web-client/src/views/ConfirmInitiateSaveModal.tsx index bb5a8794d36..9df45b79856 100644 --- a/web-client/src/views/ConfirmInitiateSaveModal.tsx +++ b/web-client/src/views/ConfirmInitiateSaveModal.tsx @@ -1,7 +1,7 @@ import { ConsolidatedCasesCheckboxes } from './ConsolidatedCasesCheckboxes'; import { ModalDialog } from './ModalDialog'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React, { useState } from 'react'; diff --git a/web-client/src/views/ConfirmInitiateServiceModal.tsx b/web-client/src/views/ConfirmInitiateServiceModal.tsx index b2db527dcc2..3419c5951de 100644 --- a/web-client/src/views/ConfirmInitiateServiceModal.tsx +++ b/web-client/src/views/ConfirmInitiateServiceModal.tsx @@ -2,7 +2,7 @@ import { ConsolidatedCasesCheckboxes } from './ConsolidatedCasesCheckboxes'; import { Hint } from '../ustc-ui/Hint/Hint'; import { ModalDialog } from './ModalDialog'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/ConfirmReplacePetitionModal.tsx b/web-client/src/views/ConfirmReplacePetitionModal.tsx index d31647ba4d7..e2f352ca516 100644 --- a/web-client/src/views/ConfirmReplacePetitionModal.tsx +++ b/web-client/src/views/ConfirmReplacePetitionModal.tsx @@ -1,6 +1,6 @@ import { ModalDialog } from './ModalDialog'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/DraftDocuments/ConfirmEditModal.tsx b/web-client/src/views/DraftDocuments/ConfirmEditModal.tsx index 5f1934a8a96..8136997c953 100644 --- a/web-client/src/views/DraftDocuments/ConfirmEditModal.tsx +++ b/web-client/src/views/DraftDocuments/ConfirmEditModal.tsx @@ -1,6 +1,6 @@ import { ModalDialog } from '../ModalDialog'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/EditDocketEntry/StrikeDocketEntryModal.tsx b/web-client/src/views/EditDocketEntry/StrikeDocketEntryModal.tsx index cc5d524741d..3ee7b6488f4 100644 --- a/web-client/src/views/EditDocketEntry/StrikeDocketEntryModal.tsx +++ b/web-client/src/views/EditDocketEntry/StrikeDocketEntryModal.tsx @@ -1,6 +1,6 @@ import { ModalDialog } from '../ModalDialog'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/InclusionsForm.tsx b/web-client/src/views/FileDocument/InclusionsForm.tsx index 422c689d46e..2871d5d9d49 100644 --- a/web-client/src/views/FileDocument/InclusionsForm.tsx +++ b/web-client/src/views/FileDocument/InclusionsForm.tsx @@ -2,7 +2,7 @@ import { Button } from '../../ustc-ui/Button/Button'; import { DateSelector } from '@web-client/ustc-ui/DateInput/DateSelector'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/NonstandardForm.tsx b/web-client/src/views/FileDocument/NonstandardForm.tsx index 9054d8699f5..ae3923e8bcc 100644 --- a/web-client/src/views/FileDocument/NonstandardForm.tsx +++ b/web-client/src/views/FileDocument/NonstandardForm.tsx @@ -4,7 +4,7 @@ import { Mobile, NonMobile } from '../../ustc-ui/Responsive/Responsive'; import { TrialCity } from '../StartCase/TrialCity'; import { connect } from '@web-client/presenter/shared.cerebral'; import { get } from 'lodash'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React, { useEffect } from 'react'; diff --git a/web-client/src/views/FileDocument/ObjectionsForm.tsx b/web-client/src/views/FileDocument/ObjectionsForm.tsx index 0d6f205296d..ed790fde08c 100644 --- a/web-client/src/views/FileDocument/ObjectionsForm.tsx +++ b/web-client/src/views/FileDocument/ObjectionsForm.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/SecondarySupportingDocumentForm.tsx b/web-client/src/views/FileDocument/SecondarySupportingDocumentForm.tsx index 91f52d9fed0..b79620a03fd 100644 --- a/web-client/src/views/FileDocument/SecondarySupportingDocumentForm.tsx +++ b/web-client/src/views/FileDocument/SecondarySupportingDocumentForm.tsx @@ -3,7 +3,7 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { StateDrivenFileInput } from '../FileDocument/StateDrivenFileInput'; import { SupportingDocumentInclusionsForm } from './SupportingDocumentInclusionsForm'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewAllDocumentsMobile.tsx b/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewAllDocumentsMobile.tsx index ee0d53ec97d..c1f3b9a31ae 100644 --- a/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewAllDocumentsMobile.tsx +++ b/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewAllDocumentsMobile.tsx @@ -1,7 +1,7 @@ import { Button } from '../../../ustc-ui/Button/Button'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewDocumentCategory.tsx b/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewDocumentCategory.tsx index b21a46049c1..49d0daace8b 100644 --- a/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewDocumentCategory.tsx +++ b/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/ViewDocumentCategory.tsx @@ -1,7 +1,7 @@ import { Button } from '../../../ustc-ui/Button/Button'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/WhatDocumentIsThis.tsx b/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/WhatDocumentIsThis.tsx index 8e3bf23f4c9..d83a30cf251 100644 --- a/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/WhatDocumentIsThis.tsx +++ b/web-client/src/views/FileDocument/SelectDocumentWizardOverlay/WhatDocumentIsThis.tsx @@ -1,7 +1,7 @@ import { Button } from '../../../ustc-ui/Button/Button'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/StateDrivenFileInput.tsx b/web-client/src/views/FileDocument/StateDrivenFileInput.tsx index fb7a1691638..fa93204cb06 100644 --- a/web-client/src/views/FileDocument/StateDrivenFileInput.tsx +++ b/web-client/src/views/FileDocument/StateDrivenFileInput.tsx @@ -3,7 +3,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { cloneFile } from '../cloneFile'; import { connect } from '@web-client/presenter/shared.cerebral'; import { limitFileSize } from '../limitFileSize'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/SupportingDocumentForm.tsx b/web-client/src/views/FileDocument/SupportingDocumentForm.tsx index 1e73f82b32b..a7629321d42 100644 --- a/web-client/src/views/FileDocument/SupportingDocumentForm.tsx +++ b/web-client/src/views/FileDocument/SupportingDocumentForm.tsx @@ -3,7 +3,7 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { StateDrivenFileInput } from '../FileDocument/StateDrivenFileInput'; import { SupportingDocumentInclusionsForm } from './SupportingDocumentInclusionsForm'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/FileDocument/SupportingDocumentInclusionsForm.tsx b/web-client/src/views/FileDocument/SupportingDocumentInclusionsForm.tsx index 0a51993c4cf..a612974b22f 100644 --- a/web-client/src/views/FileDocument/SupportingDocumentInclusionsForm.tsx +++ b/web-client/src/views/FileDocument/SupportingDocumentInclusionsForm.tsx @@ -2,7 +2,7 @@ import { Button } from '../../ustc-ui/Button/Button'; import { DateSelector } from '@web-client/ustc-ui/DateInput/DateSelector'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/Footer.tsx b/web-client/src/views/Footer.tsx index f9a235fa234..6b576929fb0 100644 --- a/web-client/src/views/Footer.tsx +++ b/web-client/src/views/Footer.tsx @@ -3,7 +3,7 @@ import { Button } from '../ustc-ui/Button/Button'; import { DeployedDate } from './DeployedDate'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { state } from 'cerebral'; +import { state } from '../utilities/cerebralWrapper'; import React, { useEffect, useState } from 'react'; import classNames from 'classnames'; const seal = require('../images/ustc_seal.svg') as string; diff --git a/web-client/src/views/FormCancelModalDialog.tsx b/web-client/src/views/FormCancelModalDialog.tsx index 83578e37fd6..ad4c46f8d6e 100644 --- a/web-client/src/views/FormCancelModalDialog.tsx +++ b/web-client/src/views/FormCancelModalDialog.tsx @@ -1,6 +1,6 @@ import { ModalDialog } from './ModalDialog'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/IRSNotice.tsx b/web-client/src/views/IRSNotice.tsx index b64e24f720e..1111f7b54a7 100644 --- a/web-client/src/views/IRSNotice.tsx +++ b/web-client/src/views/IRSNotice.tsx @@ -4,7 +4,7 @@ import { DateSelector } from '@web-client/ustc-ui/DateInput/DateSelector'; import { FormGroup } from '../ustc-ui/FormGroup/FormGroup'; import { StatisticsForm } from './StartCaseInternal/StatisticsForm'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/Messages/ConfirmRemoveSignatureModal.tsx b/web-client/src/views/Messages/ConfirmRemoveSignatureModal.tsx index 0299a7d0da8..009ea999011 100644 --- a/web-client/src/views/Messages/ConfirmRemoveSignatureModal.tsx +++ b/web-client/src/views/Messages/ConfirmRemoveSignatureModal.tsx @@ -1,6 +1,6 @@ import { ModalDialog } from '../ModalDialog'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/PaperFiling/Inclusions.tsx b/web-client/src/views/PaperFiling/Inclusions.tsx index 0d37c0b6abe..ca06bc41a0e 100644 --- a/web-client/src/views/PaperFiling/Inclusions.tsx +++ b/web-client/src/views/PaperFiling/Inclusions.tsx @@ -1,6 +1,6 @@ import { DateSelector } from '@web-client/ustc-ui/DateInput/DateSelector'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/Practitioners/PractitionerContactForm.tsx b/web-client/src/views/Practitioners/PractitionerContactForm.tsx index fdca63306f1..6b46da36ba2 100644 --- a/web-client/src/views/Practitioners/PractitionerContactForm.tsx +++ b/web-client/src/views/Practitioners/PractitionerContactForm.tsx @@ -3,7 +3,7 @@ import { Country } from '../StartCase/Country'; import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { InternationalAddress } from '../StartCase/InternationalAddress'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/Practitioners/PractitionerForm.tsx b/web-client/src/views/Practitioners/PractitionerForm.tsx index afc414cdaa9..f1b957f577e 100644 --- a/web-client/src/views/Practitioners/PractitionerForm.tsx +++ b/web-client/src/views/Practitioners/PractitionerForm.tsx @@ -4,7 +4,7 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { PractitionerContactForm } from './PractitionerContactForm'; import { PractitionerLoginServiceEmailForm } from './PractitionerLoginServiceEmailForm'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/Practitioners/PractitionerLoginServiceEmailForm.tsx b/web-client/src/views/Practitioners/PractitionerLoginServiceEmailForm.tsx index b1f3a46e914..8767da85e1a 100644 --- a/web-client/src/views/Practitioners/PractitionerLoginServiceEmailForm.tsx +++ b/web-client/src/views/Practitioners/PractitionerLoginServiceEmailForm.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/PreviewControls.tsx b/web-client/src/views/PreviewControls.tsx index bda6c5f7ab6..5640e9e412e 100644 --- a/web-client/src/views/PreviewControls.tsx +++ b/web-client/src/views/PreviewControls.tsx @@ -1,7 +1,7 @@ import { Button } from '../ustc-ui/Button/Button'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import React from 'react'; import classNames from 'classnames'; diff --git a/web-client/src/views/Public/PublicFilingsAndProceedings.tsx b/web-client/src/views/Public/PublicFilingsAndProceedings.tsx index 997790fd098..a0272283128 100644 --- a/web-client/src/views/Public/PublicFilingsAndProceedings.tsx +++ b/web-client/src/views/Public/PublicFilingsAndProceedings.tsx @@ -1,6 +1,6 @@ import { Button } from '../../ustc-ui/Button/Button'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/ServiceIndicatorRadios.tsx b/web-client/src/views/ServiceIndicatorRadios.tsx index 8128a0e3b53..08d97f1f5b1 100644 --- a/web-client/src/views/ServiceIndicatorRadios.tsx +++ b/web-client/src/views/ServiceIndicatorRadios.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCase/Address.tsx b/web-client/src/views/StartCase/Address.tsx index 78735ecf2ae..7743347a018 100644 --- a/web-client/src/views/StartCase/Address.tsx +++ b/web-client/src/views/StartCase/Address.tsx @@ -2,7 +2,7 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { Mobile, NonMobile } from '../../ustc-ui/Responsive/Responsive'; import { StateSelect } from './StateSelect'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCase/CaseTypeSelect.tsx b/web-client/src/views/StartCase/CaseTypeSelect.tsx index c352a6e091c..b26579dc49b 100644 --- a/web-client/src/views/StartCase/CaseTypeSelect.tsx +++ b/web-client/src/views/StartCase/CaseTypeSelect.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCase/ContactPrimary.tsx b/web-client/src/views/StartCase/ContactPrimary.tsx index cc3ea99473e..bdd69be3183 100644 --- a/web-client/src/views/StartCase/ContactPrimary.tsx +++ b/web-client/src/views/StartCase/ContactPrimary.tsx @@ -4,7 +4,7 @@ import { EConsent } from '../StartCaseInternal/EConsent'; import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { InternationalAddress } from './InternationalAddress'; import { PaperPetitionEmail } from '../StartCaseInternal/PaperPetitionEmail'; -import { props as cerebralProps } from 'cerebral'; +import { props as cerebralProps } from '../../utilities/cerebralWrapper'; import { connect } from '@web-client/presenter/shared.cerebral'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/views/StartCase/ContactSecondary.tsx b/web-client/src/views/StartCase/ContactSecondary.tsx index f461130fe92..af7ab4e9540 100644 --- a/web-client/src/views/StartCase/ContactSecondary.tsx +++ b/web-client/src/views/StartCase/ContactSecondary.tsx @@ -5,7 +5,7 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { InternationalAddress } from './InternationalAddress'; import { PaperPetitionEmail } from '../StartCaseInternal/PaperPetitionEmail'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCase/Country.tsx b/web-client/src/views/StartCase/Country.tsx index 32a5ed3036e..6453c4f19a2 100644 --- a/web-client/src/views/StartCase/Country.tsx +++ b/web-client/src/views/StartCase/Country.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCase/Email.tsx b/web-client/src/views/StartCase/Email.tsx index 2042986dabd..60ccabbea11 100644 --- a/web-client/src/views/StartCase/Email.tsx +++ b/web-client/src/views/StartCase/Email.tsx @@ -1,6 +1,6 @@ import { Hint } from '../../ustc-ui/Hint/Hint'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCase/InternationalAddress.tsx b/web-client/src/views/StartCase/InternationalAddress.tsx index f931dd25445..8ebdb209124 100644 --- a/web-client/src/views/StartCase/InternationalAddress.tsx +++ b/web-client/src/views/StartCase/InternationalAddress.tsx @@ -1,5 +1,5 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; -import { props as cerebralProps } from 'cerebral'; +import { props as cerebralProps } from '../../utilities/cerebralWrapper'; import { connect } from '@web-client/presenter/shared.cerebral'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/views/StartCase/ProcedureType.tsx b/web-client/src/views/StartCase/ProcedureType.tsx index 4bc48ffb46f..913496005b9 100644 --- a/web-client/src/views/StartCase/ProcedureType.tsx +++ b/web-client/src/views/StartCase/ProcedureType.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCase/TrialCity.tsx b/web-client/src/views/StartCase/TrialCity.tsx index 3cc44139416..a33084aeb33 100644 --- a/web-client/src/views/StartCase/TrialCity.tsx +++ b/web-client/src/views/StartCase/TrialCity.tsx @@ -1,7 +1,7 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { TrialCityOptions } from '../TrialCityOptions'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; import classNames from 'classnames'; diff --git a/web-client/src/views/StartCaseInternal/EConsent.tsx b/web-client/src/views/StartCaseInternal/EConsent.tsx index 19a1c8d73a6..66a2fb2267e 100644 --- a/web-client/src/views/StartCaseInternal/EConsent.tsx +++ b/web-client/src/views/StartCaseInternal/EConsent.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCaseInternal/ElectronicServiceCheckbox.tsx b/web-client/src/views/StartCaseInternal/ElectronicServiceCheckbox.tsx index d700fced94b..bacbab784e0 100644 --- a/web-client/src/views/StartCaseInternal/ElectronicServiceCheckbox.tsx +++ b/web-client/src/views/StartCaseInternal/ElectronicServiceCheckbox.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCaseInternal/PaperPetitionEmail.tsx b/web-client/src/views/StartCaseInternal/PaperPetitionEmail.tsx index 8898a37e0e1..ae2fc892073 100644 --- a/web-client/src/views/StartCaseInternal/PaperPetitionEmail.tsx +++ b/web-client/src/views/StartCaseInternal/PaperPetitionEmail.tsx @@ -1,6 +1,6 @@ import { FormGroup } from '../../ustc-ui/FormGroup/FormGroup'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/StartCaseUpdated/IrsNoticeUploadForm.tsx b/web-client/src/views/StartCaseUpdated/IrsNoticeUploadForm.tsx index 0fe2392632c..6b6f632c636 100644 --- a/web-client/src/views/StartCaseUpdated/IrsNoticeUploadForm.tsx +++ b/web-client/src/views/StartCaseUpdated/IrsNoticeUploadForm.tsx @@ -4,7 +4,7 @@ import { DateSelector } from '@web-client/ustc-ui/DateInput/DateSelector'; import { FormGroup } from '@web-client/ustc-ui/FormGroup/FormGroup'; import { Icon } from '@web-client/ustc-ui/Icon/Icon'; import { StateDrivenFileInput } from '@web-client/views/FileDocument/StateDrivenFileInput'; -import { props as cerebralProps } from 'cerebral'; +import { props as cerebralProps } from '../../utilities/cerebralWrapper'; import { connect } from '@web-client/presenter/shared.cerebral'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/views/StartCaseUpdated/PetitionFormResponse.tsx b/web-client/src/views/StartCaseUpdated/PetitionFormResponse.tsx index d62240e77c1..70f63af2f74 100644 --- a/web-client/src/views/StartCaseUpdated/PetitionFormResponse.tsx +++ b/web-client/src/views/StartCaseUpdated/PetitionFormResponse.tsx @@ -1,7 +1,7 @@ import { Button } from '@web-client/ustc-ui/Button/Button'; import { FormGroup } from '@web-client/ustc-ui/FormGroup/FormGroup'; import { Mobile, NonMobile } from '@web-client/ustc-ui/Responsive/Responsive'; -import { props as cerebralProps } from 'cerebral'; +import { props as cerebralProps } from '../../utilities/cerebralWrapper'; import { connect } from '@web-client/presenter/shared.cerebral'; import { sequences } from '@web-client/presenter/app.cerebral'; import { state } from '@web-client/presenter/app.cerebral'; diff --git a/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep6.tsx b/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep6.tsx index 61d82b4d667..b2f8c6822fd 100644 --- a/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep6.tsx +++ b/web-client/src/views/StartCaseUpdated/UpdatedFilePetitionStep6.tsx @@ -12,7 +12,7 @@ import { InfoNotificationComponent } from '@web-client/views/InfoNotification'; import { PETITION_TYPES } from '@web-client/presenter/actions/setupPetitionStateAction'; import { UpdatedFilePetitionButtons } from '@web-client/views/StartCaseUpdated/UpdatedFilePetitionButtons'; import { WarningNotificationComponent } from '@web-client/views/WarningNotification'; -import { props as cerebralProps } from 'cerebral'; +import { props as cerebralProps } from '../../utilities/cerebralWrapper'; import { connect } from '@web-client/presenter/shared.cerebral'; import { sequences, state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/TrialCityOptions.tsx b/web-client/src/views/TrialCityOptions.tsx index d52352e063c..7d714e3f0b8 100644 --- a/web-client/src/views/TrialCityOptions.tsx +++ b/web-client/src/views/TrialCityOptions.tsx @@ -1,5 +1,5 @@ import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/views/TrialSessions/TrialSessionsTable.tsx b/web-client/src/views/TrialSessions/TrialSessionsTable.tsx index 8e2875d6591..686635d94cc 100644 --- a/web-client/src/views/TrialSessions/TrialSessionsTable.tsx +++ b/web-client/src/views/TrialSessions/TrialSessionsTable.tsx @@ -6,7 +6,7 @@ import { } from '../../../../shared/src/business/entities/EntityConstants'; import { TrialCityOptions } from '../TrialCityOptions'; import { connect } from '@web-client/presenter/shared.cerebral'; -import { props } from 'cerebral'; +import { props } from '../../utilities/cerebralWrapper'; import { state } from '@web-client/presenter/app.cerebral'; import React from 'react'; diff --git a/web-client/src/withAppContext.ts b/web-client/src/withAppContext.ts index 706650015c3..b37839364ed 100644 --- a/web-client/src/withAppContext.ts +++ b/web-client/src/withAppContext.ts @@ -1,4 +1,4 @@ -import { Get } from 'cerebral'; +import { Get } from './utilities/cerebralWrapper'; import { applicationContext } from './applicationContext'; export function withAppContextDecorator(