diff --git a/src/applications/hca/components/FormFields/DependentList.jsx b/src/applications/hca/components/FormFields/DependentList.jsx index 933ee08b6bce..57f1ea40c47b 100644 --- a/src/applications/hca/components/FormFields/DependentList.jsx +++ b/src/applications/hca/components/FormFields/DependentList.jsx @@ -1,11 +1,10 @@ import React, { useEffect, useRef, useState } from 'react'; import { Link } from 'react-router'; import PropTypes from 'prop-types'; - import { VaModal } from '@department-of-veterans-affairs/component-library/dist/react-bindings'; import { focusElement } from 'platform/utilities/ui'; import { SESSION_ITEM_NAME, SHARED_PATHS } from '../../utils/constants'; -import { normalizeFullName } from '../../utils/helpers/general'; +import { normalizeFullName } from '../../utils/helpers'; import useAfterRenderEffect from '../../hooks/useAfterRenderEffect'; // declare shared routes from the form & default states diff --git a/src/applications/hca/components/FormFields/DependentListLoopForm.jsx b/src/applications/hca/components/FormFields/DependentListLoopForm.jsx index 01868986ce4f..cdb3bb3fd119 100644 --- a/src/applications/hca/components/FormFields/DependentListLoopForm.jsx +++ b/src/applications/hca/components/FormFields/DependentListLoopForm.jsx @@ -7,10 +7,7 @@ import { dependentUISchema as uiSchema, } from '../../definitions/dependent'; import { selectAuthStatus } from '../../utils/selectors'; -import { - replaceStrValues, - normalizeFullName, -} from '../../utils/helpers/general'; +import { replaceStrValues, normalizeFullName } from '../../utils/helpers'; import DependentSIPWarning from '../FormAlerts/DependentSIPWarning'; const DependentListLoopForm = props => { diff --git a/src/applications/hca/components/FormPages/DependentInformation.jsx b/src/applications/hca/components/FormPages/DependentInformation.jsx index 3d01827b91b4..bfcdadc3863d 100644 --- a/src/applications/hca/components/FormPages/DependentInformation.jsx +++ b/src/applications/hca/components/FormPages/DependentInformation.jsx @@ -1,11 +1,9 @@ import React, { useEffect, useMemo, useState } from 'react'; import PropTypes from 'prop-types'; - import { VaModal } from '@department-of-veterans-affairs/component-library/dist/react-bindings'; import { focusElement } from 'platform/utilities/ui'; import { getActivePages } from 'platform/forms-system/src/js/helpers'; import FormNavButtons from 'platform/forms-system/src/js/components/FormNavButtons'; - import DependentListLoopForm from '../FormFields/DependentListLoopForm'; import useAfterRenderEffect from '../../hooks/useAfterRenderEffect'; import { @@ -13,17 +11,51 @@ import { getSearchAction, getSearchIndex, getDefaultState, -} from '../../utils/helpers/listloop-pattern'; + replaceStrValues, + canHaveEducationExpenses, +} from '../../utils/helpers'; import { DEPENDENT_VIEW_FIELDS, - DEPENDENT_SUBPAGES, SESSION_ITEM_NAME, SHARED_PATHS, + LAST_YEAR, } from '../../utils/constants'; +import content from '../../locales/en/content.json'; // declare shared data & route attrs from the form const { dependents: DEPENDENT_PATHS } = SHARED_PATHS; +// declare subpage configs for dependent information page +const DEPENDENT_SUBPAGES = [ + { + id: 'basic', + title: content['household-dependent-info-basic-title'], + }, + { + id: 'additional', + title: content['household-dependent-info-addtl-title'], + }, + { + id: 'support', + title: content['household-dependent-info-support-title'], + depends: { cohabitedLastYear: false }, + }, + { + id: 'income', + title: replaceStrValues( + content['household-dependent-info-income-title'], + LAST_YEAR, + '%d', + ), + depends: { 'view:dependentIncome': true }, + }, + { + id: 'education', + title: content['household-dependent-info-education-title'], + depends: canHaveEducationExpenses, + }, +]; + // declare default component const DependentInformation = props => { const { data, goToPath, setFormData } = props; diff --git a/src/applications/hca/components/FormReview/CustomDateReviewField.jsx b/src/applications/hca/components/FormReview/CustomDateReviewField.jsx index 0737a709767e..3d36152db407 100644 --- a/src/applications/hca/components/FormReview/CustomDateReviewField.jsx +++ b/src/applications/hca/components/FormReview/CustomDateReviewField.jsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { formatDate } from '../../utils/helpers/general'; +import { formatDate } from '../../utils/helpers'; const CustomDateReviewField = ({ children: { diff --git a/src/applications/hca/components/FormReview/DependentsReviewPage.jsx b/src/applications/hca/components/FormReview/DependentsReviewPage.jsx index 47f761c9732c..dee74d7133de 100644 --- a/src/applications/hca/components/FormReview/DependentsReviewPage.jsx +++ b/src/applications/hca/components/FormReview/DependentsReviewPage.jsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { normalizeFullName } from '../../utils/helpers/general'; +import { normalizeFullName } from '../../utils/helpers'; const DependentsReviewPage = ({ data, editPage }) => { const { dependents } = data; diff --git a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/FAQ/index.jsx b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/FAQ/index.jsx index 1c797be2705f..b4adb01003c5 100644 --- a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/FAQ/index.jsx +++ b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/FAQ/index.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { useSelector } from 'react-redux'; import { HCA_ENROLLMENT_STATUSES } from '../../../../utils/constants'; import { selectEnrollmentStatus } from '../../../../utils/selectors'; -import { createLiteralMap } from '../../../../utils/helpers/general'; +import { createLiteralMap } from '../../../../utils/helpers'; import GeneralFAQs from '../ContentBlocks/GeneralFAQs'; import ReapplyFAQs from '../ContentBlocks/ReapplyFAQs'; diff --git a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningExplanation.jsx b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningExplanation.jsx index f8a1b8092161..3e3eba3c74b6 100644 --- a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningExplanation.jsx +++ b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningExplanation.jsx @@ -1,7 +1,7 @@ import { useSelector } from 'react-redux'; import { HCA_ENROLLMENT_STATUSES } from '../../../../utils/constants'; import { selectEnrollmentStatus } from '../../../../utils/selectors'; -import { createLiteralMap } from '../../../../utils/helpers/general'; +import { createLiteralMap } from '../../../../utils/helpers'; import WarningExplainations from '../ContentBlocks/WarningExplainations'; const WarningExplanation = () => { diff --git a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningHeadline.jsx b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningHeadline.jsx index f211a78d5169..57de9f8ee68e 100644 --- a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningHeadline.jsx +++ b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningHeadline.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { useSelector } from 'react-redux'; import { HCA_ENROLLMENT_STATUSES } from '../../../../utils/constants'; import { selectEnrollmentStatus } from '../../../../utils/selectors'; -import { createLiteralMap } from '../../../../utils/helpers/general'; +import { createLiteralMap } from '../../../../utils/helpers'; import content from '../../../../locales/en/content.json'; const WarningHeadline = () => { diff --git a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningStatus.jsx b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningStatus.jsx index 19f9b0c4f945..ab92d77e7349 100644 --- a/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningStatus.jsx +++ b/src/applications/hca/components/IntroductionPage/EnrollmentStatus/Warning/WarningStatus.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { useSelector } from 'react-redux'; import { getMedicalCenterNameByID } from 'platform/utilities/medical-centers/medical-centers'; import { isValidDateString } from 'platform/utilities/date'; -import { formatDate } from '../../../../utils/helpers/general'; +import { formatDate } from '../../../../utils/helpers'; import { HCA_ENROLLMENT_STATUSES } from '../../../../utils/constants'; import { selectEnrollmentStatus } from '../../../../utils/selectors'; import content from '../../../../locales/en/content.json'; diff --git a/src/applications/hca/components/VeteranInformation/AuthProfileInformation.jsx b/src/applications/hca/components/VeteranInformation/AuthProfileInformation.jsx index c377984922dd..342da6ee6c2e 100644 --- a/src/applications/hca/components/VeteranInformation/AuthProfileInformation.jsx +++ b/src/applications/hca/components/VeteranInformation/AuthProfileInformation.jsx @@ -1,9 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; - import { CONTACTS } from '@department-of-veterans-affairs/component-library/contacts'; import AuthenticatedShortFormAlert from '../FormAlerts/AuthenticatedShortFormAlert'; -import { formatDate, normalizeFullName } from '../../utils/helpers/general'; +import { formatDate, normalizeFullName } from '../../utils/helpers'; import { APP_URLS, HIGH_DISABILITY_MINIMUM } from '../../utils/constants'; const AuthProfileInformation = ({ user }) => { diff --git a/src/applications/hca/components/VeteranInformation/GuestVerifiedInformation.jsx b/src/applications/hca/components/VeteranInformation/GuestVerifiedInformation.jsx index 8ef1f1eae4b2..9445f21f481a 100644 --- a/src/applications/hca/components/VeteranInformation/GuestVerifiedInformation.jsx +++ b/src/applications/hca/components/VeteranInformation/GuestVerifiedInformation.jsx @@ -1,10 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { - formatDate, - maskSSN, - normalizeFullName, -} from '../../utils/helpers/general'; +import { formatDate, maskSSN, normalizeFullName } from '../../utils/helpers'; const GuestVerifiedInformation = ({ user }) => { const { diff --git a/src/applications/hca/config/chapters/insuranceInformation/general.js b/src/applications/hca/config/chapters/insuranceInformation/general.js index 269152270669..30dd4adaa293 100644 --- a/src/applications/hca/config/chapters/insuranceInformation/general.js +++ b/src/applications/hca/config/chapters/insuranceInformation/general.js @@ -11,7 +11,7 @@ import { TricarePolicyDescription, } from '../../../components/FormDescriptions'; import { validatePolicyNumber } from '../../../utils/validation'; -import { getInsuranceAriaLabel } from '../../../utils/helpers/insurance'; +import { getInsuranceAriaLabel } from '../../../utils/helpers'; import { emptyObjectSchema } from '../../../definitions'; const { providers, isCoveredByHealthInsurance } = fullSchemaHca.properties; diff --git a/src/applications/hca/config/chapters/insuranceInformation/insurancePolicies.js b/src/applications/hca/config/chapters/insuranceInformation/insurancePolicies.js index 75292a81448c..9a04025db297 100644 --- a/src/applications/hca/config/chapters/insuranceInformation/insurancePolicies.js +++ b/src/applications/hca/config/chapters/insuranceInformation/insurancePolicies.js @@ -1,5 +1,5 @@ import { arrayBuilderPages } from 'platform/forms-system/src/js/patterns/array-builder'; -import { insuranceTextOverrides } from '../../../utils/helpers/form-config'; +import { insuranceTextOverrides } from '../../../utils/helpers'; import { validateInsurancePolicy } from '../../../utils/validation'; import { policyPage, diff --git a/src/applications/hca/config/chapters/militaryService/documentUpload.js b/src/applications/hca/config/chapters/militaryService/documentUpload.js index 0ced5fd29d17..691513a074ea 100644 --- a/src/applications/hca/config/chapters/militaryService/documentUpload.js +++ b/src/applications/hca/config/chapters/militaryService/documentUpload.js @@ -1,10 +1,7 @@ import environment from 'platform/utilities/environment'; import fileUploadUI from 'platform/forms-system/src/js/definitions/file'; import DischargePapersDescription from '../../../components/FormDescriptions/DischargePapersDescription'; -import { - createPayload, - parseResponse, -} from '../../../utils/helpers/file-attachments'; +import { createPayload, parseResponse } from '../../../utils/helpers'; import { attachmentsSchema } from '../../../definitions/attachments'; export default { diff --git a/src/applications/hca/config/form.js b/src/applications/hca/config/form.js index dd6034269812..f8676e9fd80f 100644 --- a/src/applications/hca/config/form.js +++ b/src/applications/hca/config/form.js @@ -40,7 +40,7 @@ import { spouseAddressDoesNotMatchVeterans, includeDependentInformation, collectMedicareInformation, -} from '../utils/helpers/form-config'; +} from '../utils/helpers'; import { SHARED_PATHS } from '../utils/constants'; import migrations from './migrations'; import manifest from '../manifest.json'; diff --git a/src/applications/hca/config/submit-transformer.js b/src/applications/hca/config/submit-transformer.js index e15d3289742f..8f0f999eb159 100644 --- a/src/applications/hca/config/submit-transformer.js +++ b/src/applications/hca/config/submit-transformer.js @@ -5,7 +5,7 @@ import { } from 'platform/forms-system/src/js/helpers'; import set from 'platform/utilities/data/set'; import recordEvent from 'platform/monitoring/record-event'; -import { hasLowDisabilityRating } from '../utils/helpers/form-config'; +import { hasLowDisabilityRating } from '../utils/helpers'; /** * Map file attachment data to determine if any of the files are the diff --git a/src/applications/hca/containers/ConfirmationPage.jsx b/src/applications/hca/containers/ConfirmationPage.jsx index 2b35e35a0834..eb6a1fa107df 100644 --- a/src/applications/hca/containers/ConfirmationPage.jsx +++ b/src/applications/hca/containers/ConfirmationPage.jsx @@ -1,11 +1,10 @@ import React from 'react'; import { useSelector } from 'react-redux'; - import { isLoggedIn, selectProfile } from 'platform/user/selectors'; import ConfirmationScreenView from '../components/ConfirmationPage/ConfirmationScreenView'; import ConfirmationPrintView from '../components/ConfirmationPage/ConfirmationPrintView'; import ConfirmationFAQ from '../components/ConfirmationPage/ConfirmationFAQ'; -import { normalizeFullName } from '../utils/helpers/general'; +import { normalizeFullName } from '../utils/helpers'; const ConfirmationPage = () => { const { submission, data } = useSelector(state => state.form); diff --git a/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationPrintView.unit.spec.js b/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationPrintView.unit.spec.js index 500049fc11d7..b1406d8a3f99 100644 --- a/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationPrintView.unit.spec.js +++ b/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationPrintView.unit.spec.js @@ -1,9 +1,8 @@ import React from 'react'; import { render } from '@testing-library/react'; import { expect } from 'chai'; - import ConfirmationPrintView from '../../../../components/ConfirmationPage/ConfirmationPrintView'; -import { normalizeFullName } from '../../../../utils/helpers/general'; +import { normalizeFullName } from '../../../../utils/helpers'; describe('hca ', () => { const getData = ({ timestamp = undefined }) => ({ diff --git a/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationScreenView.unit.spec.js b/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationScreenView.unit.spec.js index 53a319a25917..71ae3f0dec54 100644 --- a/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationScreenView.unit.spec.js +++ b/src/applications/hca/tests/unit/components/ConfirmationPage/ConfirmationScreenView.unit.spec.js @@ -2,9 +2,8 @@ import React from 'react'; import { fireEvent, render } from '@testing-library/react'; import { expect } from 'chai'; import sinon from 'sinon'; - import ConfirmationScreenView from '../../../../components/ConfirmationPage/ConfirmationScreenView'; -import { normalizeFullName } from '../../../../utils/helpers/general'; +import { normalizeFullName } from '../../../../utils/helpers'; describe('hca ', () => { const getData = ({ timestamp = undefined }) => ({ diff --git a/src/applications/hca/tests/unit/components/FormFields/DependentList.unit.spec.js b/src/applications/hca/tests/unit/components/FormFields/DependentList.unit.spec.js index 387be16ecda6..db87ad856f1a 100644 --- a/src/applications/hca/tests/unit/components/FormFields/DependentList.unit.spec.js +++ b/src/applications/hca/tests/unit/components/FormFields/DependentList.unit.spec.js @@ -2,9 +2,8 @@ import React from 'react'; import { render } from '@testing-library/react'; import { expect } from 'chai'; import sinon from 'sinon'; - import DependentList from '../../../../components/FormFields/DependentList'; -import { normalizeFullName } from '../../../../utils/helpers/general'; +import { normalizeFullName } from '../../../../utils/helpers'; describe('hca ', () => { const getData = () => ({ diff --git a/src/applications/hca/tests/unit/utils/helpers/disability-rating.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/disability-rating.unit.spec.js index 087f092a09f6..38ab7a03ac24 100644 --- a/src/applications/hca/tests/unit/utils/helpers/disability-rating.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/disability-rating.unit.spec.js @@ -3,7 +3,7 @@ import { isClientError, isServerError, parseResponseErrors, -} from '../../../../utils/helpers/disability-rating'; +} from '../../../../utils/helpers'; describe('hca disability rating helpers', () => { context('when `isClientError` executes', () => { diff --git a/src/applications/hca/tests/unit/utils/helpers/enrollment-status.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/enrollment-status.unit.spec.js index c35a47c13bed..2420dacc1a49 100644 --- a/src/applications/hca/tests/unit/utils/helpers/enrollment-status.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/enrollment-status.unit.spec.js @@ -1,11 +1,11 @@ import { expect } from 'chai'; import sinon from 'sinon'; -import { mockApiRequest } from '~/platform/testing/unit/helpers'; +import { mockApiRequest } from 'platform/testing/unit/helpers'; import { callAPI, callFake404, callFakeSuccess, -} from '../../../../utils/helpers/enrollment-status'; +} from '../../../../utils/helpers'; describe('hca enrollment status helpers', () => { let dispatch; diff --git a/src/applications/hca/tests/unit/utils/helpers/file-attachments.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/file-attachments.unit.spec.js index 12fcdc79cab4..641df29a969c 100644 --- a/src/applications/hca/tests/unit/utils/helpers/file-attachments.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/file-attachments.unit.spec.js @@ -1,8 +1,5 @@ import { expect } from 'chai'; -import { - createPayload, - parseResponse, -} from '../../../../utils/helpers/file-attachments'; +import { createPayload, parseResponse } from '../../../../utils/helpers'; describe('hca `createPayload` method', () => { let mockFile; diff --git a/src/applications/hca/tests/unit/utils/helpers/form-config.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/form-config.unit.spec.js index d2c237e3bf70..fcb557526f3a 100644 --- a/src/applications/hca/tests/unit/utils/helpers/form-config.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/form-config.unit.spec.js @@ -31,7 +31,7 @@ import { includeDependentInformation, collectMedicareInformation, insuranceTextOverrides, -} from '../../../../utils/helpers/form-config'; +} from '../../../../utils/helpers'; import { DEPENDENT_VIEW_FIELDS, HIGH_DISABILITY_MINIMUM, diff --git a/src/applications/hca/tests/unit/utils/helpers/general.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/general.unit.spec.js index 5dc334ffdb00..ce72a47c246b 100644 --- a/src/applications/hca/tests/unit/utils/helpers/general.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/general.unit.spec.js @@ -6,7 +6,7 @@ import { maskSSN, normalizeFullName, replaceStrValues, -} from '../../../../utils/helpers/general'; +} from '../../../../utils/helpers'; describe('hca `createLiteralMap` method', () => { it('should create an object with correct properties based on array data', () => { diff --git a/src/applications/hca/tests/unit/utils/helpers/household.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/household.unit.spec.js index d5ee31540dee..e0db1be58e11 100644 --- a/src/applications/hca/tests/unit/utils/helpers/household.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/household.unit.spec.js @@ -1,5 +1,5 @@ import { expect } from 'chai'; -import { canHaveEducationExpenses } from '../../../../utils/helpers/household'; +import { canHaveEducationExpenses } from '../../../../utils/helpers'; describe('hca household section helpers', () => { context('hca `canHaveEducationExpenses` executes', () => { diff --git a/src/applications/hca/tests/unit/utils/helpers/insurance.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/insurance.unit.spec.js index 8871cbb866da..f1e3c66f6e94 100644 --- a/src/applications/hca/tests/unit/utils/helpers/insurance.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/insurance.unit.spec.js @@ -1,5 +1,5 @@ import { expect } from 'chai'; -import { getInsuranceAriaLabel } from '../../../../utils/helpers/insurance'; +import { getInsuranceAriaLabel } from '../../../../utils/helpers'; describe('hca `getInsuranceAriaLabel` method', () => { it('should return a generic label when the provider name is not provided', () => { diff --git a/src/applications/hca/tests/unit/utils/helpers/listloop-pattern.unit.spec.js b/src/applications/hca/tests/unit/utils/helpers/listloop-pattern.unit.spec.js index 75b83df87e10..c997b7e11fe7 100644 --- a/src/applications/hca/tests/unit/utils/helpers/listloop-pattern.unit.spec.js +++ b/src/applications/hca/tests/unit/utils/helpers/listloop-pattern.unit.spec.js @@ -5,7 +5,7 @@ import { getDefaultState, getSearchAction, getSearchIndex, -} from '../../../../utils/helpers/listloop-pattern'; +} from '../../../../utils/helpers'; describe('hca `getDataToSet` method', () => { const listRef = [{ name: 'John' }, { name: 'Jane' }, { name: 'Mary' }]; diff --git a/src/applications/hca/utils/constants.js b/src/applications/hca/utils/constants.js index df9a4559cc11..631be4e298e4 100644 --- a/src/applications/hca/utils/constants.js +++ b/src/applications/hca/utils/constants.js @@ -1,7 +1,4 @@ -import { getAppUrl } from '~/platform/utilities/registry-helpers'; -import { canHaveEducationExpenses } from './helpers/household'; -import { replaceStrValues } from './helpers/general'; -import content from '../locales/en/content.json'; +import { getAppUrl } from 'platform/utilities/registry-helpers'; // declare previous year for form questions and content export const LAST_YEAR = new Date().getFullYear() - 1; @@ -21,37 +18,6 @@ export const APP_URLS = { verify: getAppUrl('verify'), }; -// declare subpage configs for dependent information page -export const DEPENDENT_SUBPAGES = [ - { - id: 'basic', - title: content['household-dependent-info-basic-title'], - }, - { - id: 'additional', - title: content['household-dependent-info-addtl-title'], - }, - { - id: 'support', - title: content['household-dependent-info-support-title'], - depends: { cohabitedLastYear: false }, - }, - { - id: 'income', - title: replaceStrValues( - content['household-dependent-info-income-title'], - LAST_YEAR, - '%d', - ), - depends: { 'view:dependentIncome': true }, - }, - { - id: 'education', - title: content['household-dependent-info-education-title'], - depends: canHaveEducationExpenses, - }, -]; - // declare view fields for use in household section export const DEPENDENT_VIEW_FIELDS = { report: 'view:reportDependents', diff --git a/src/applications/hca/utils/helpers/index.js b/src/applications/hca/utils/helpers/index.js index 9cf604cdd48f..ac5c84f5df01 100644 --- a/src/applications/hca/utils/helpers/index.js +++ b/src/applications/hca/utils/helpers/index.js @@ -1 +1,9 @@ -// keeping for future use as an exports file +// export helpers +export * from './disability-rating'; +export * from './enrollment-status'; +export * from './file-attachments'; +export * from './form-config'; +export * from './general'; +export * from './household'; +export * from './insurance'; +export * from './listloop-pattern';