Check your eligibility
diff --git a/src/applications/gi/components/GiBillBreadcrumbs.jsx b/src/applications/gi/components/GiBillBreadcrumbs.jsx
index d59f37341608..6b2750733f14 100644
--- a/src/applications/gi/components/GiBillBreadcrumbs.jsx
+++ b/src/applications/gi/components/GiBillBreadcrumbs.jsx
@@ -47,7 +47,7 @@ const GiBillBreadcrumbs = () => {
);
}
- return {crumbs} ;
+ return {crumbs} ;
};
export default GiBillBreadcrumbs;
diff --git a/src/applications/health-care-supply-reordering/containers/App.jsx b/src/applications/health-care-supply-reordering/containers/App.jsx
index 3594c38e7780..e6a2516c0520 100644
--- a/src/applications/health-care-supply-reordering/containers/App.jsx
+++ b/src/applications/health-care-supply-reordering/containers/App.jsx
@@ -63,7 +63,7 @@ class App extends Component {
return (
<>
{!featureToggles.loading && (
-
+
Home
{/* this will get updated when this route is added */}
Health care
@@ -77,13 +77,11 @@ class App extends Component {
Loading your information...
)}
- {isError &&
- !pending &&
- isLoggedIn && (
-
-
-
- )}
+ {isError && !pending && isLoggedIn && (
+
+
+
+ )}
{showMainContent && (
{children}
@@ -105,7 +103,4 @@ const mapDispatchToProps = dispatch => ({
...bindActionCreators({ fetchFormStatus }, dispatch),
});
-export default connect(
- mapStateToProps,
- mapDispatchToProps,
-)(App);
+export default connect(mapStateToProps, mapDispatchToProps)(App);
diff --git a/src/applications/ivc-champva/10-7959f-1/containers/IntroductionPage.jsx b/src/applications/ivc-champva/10-7959f-1/containers/IntroductionPage.jsx
index 16cf77710903..8c1b8876052f 100644
--- a/src/applications/ivc-champva/10-7959f-1/containers/IntroductionPage.jsx
+++ b/src/applications/ivc-champva/10-7959f-1/containers/IntroductionPage.jsx
@@ -32,7 +32,7 @@ class IntroductionPage extends React.Component {
Follow the steps below to apply for CHAMPVA benefits.
-
+
Prepare
To fill out this application, you’ll need your:
diff --git a/src/applications/medical-copays/components/AlertView.jsx b/src/applications/medical-copays/components/AlertView.jsx
index ceecfe6eef26..ac85fc70b21f 100644
--- a/src/applications/medical-copays/components/AlertView.jsx
+++ b/src/applications/medical-copays/components/AlertView.jsx
@@ -37,7 +37,7 @@ const AlertView = ({ pathname, alertType, error, cdpToggle, hasDebts }) => {
return (
<>
-
+
Home
Health care
Pay your VA copay bill
diff --git a/src/applications/medical-copays/containers/DetailPage.jsx b/src/applications/medical-copays/containers/DetailPage.jsx
index 2285f4c1429c..71def8c0f2ee 100644
--- a/src/applications/medical-copays/containers/DetailPage.jsx
+++ b/src/applications/medical-copays/containers/DetailPage.jsx
@@ -33,19 +33,19 @@ const DetailPage = ({ match }) => {
mcpHTMLStatementToggle(state),
);
- useEffect(
- () => {
- if (!isCurrentBalance) {
- setAlert('past-due-balance');
- }
- scrollToTop();
- },
- [isCurrentBalance],
- );
+ useEffect(() => {
+ if (!isCurrentBalance) {
+ setAlert('past-due-balance');
+ }
+ scrollToTop();
+ }, [isCurrentBalance]);
return (
<>
-
+
Home
Health care
Pay your VA copay bill
diff --git a/src/applications/medical-copays/containers/HTMLStatementPage.jsx b/src/applications/medical-copays/containers/HTMLStatementPage.jsx
index a821fca77afa..dca33c3ad66a 100644
--- a/src/applications/medical-copays/containers/HTMLStatementPage.jsx
+++ b/src/applications/medical-copays/containers/HTMLStatementPage.jsx
@@ -32,7 +32,10 @@ const HTMLStatementPage = ({ match }) => {
return (
<>
-
+
Home
Health care
Pay your VA copay bill
diff --git a/src/applications/medical-copays/containers/OverviewPage.jsx b/src/applications/medical-copays/containers/OverviewPage.jsx
index 9499994f4091..29406f89519e 100644
--- a/src/applications/medical-copays/containers/OverviewPage.jsx
+++ b/src/applications/medical-copays/containers/OverviewPage.jsx
@@ -59,7 +59,7 @@ const OverviewPage = () => {
return (
<>
-
+
Home
Health care
Pay your VA copay bill
diff --git a/src/applications/mhv/secure-messaging/components/shared/SmBreadcrumbs.jsx b/src/applications/mhv/secure-messaging/components/shared/SmBreadcrumbs.jsx
index ad8c570ceccf..316731aa59d1 100644
--- a/src/applications/mhv/secure-messaging/components/shared/SmBreadcrumbs.jsx
+++ b/src/applications/mhv/secure-messaging/components/shared/SmBreadcrumbs.jsx
@@ -26,99 +26,84 @@ const SmBreadcrumbs = () => {
}
}
- const [locationBasePath, locationChildPath] = useMemo(
- () => {
- const pathElements = location.pathname.split('/');
- if (pathElements[0] === '') pathElements.shift();
- return pathElements;
- },
- [location],
- );
+ const [locationBasePath, locationChildPath] = useMemo(() => {
+ const pathElements = location.pathname.split('/');
+ if (pathElements[0] === '') pathElements.shift();
+ return pathElements;
+ }, [location]);
- useEffect(
- () => {
- checkScreenSize();
- },
- [isMobile],
- );
+ useEffect(() => {
+ checkScreenSize();
+ }, [isMobile]);
- useEffect(
- () => {
- if (
- `/${locationBasePath}/` === Constants.Paths.FOLDERS &&
- parseInt(locationChildPath, 10) < 1
- ) {
- navigateToFolderByFolderId(locationChildPath, history);
- }
- },
- [locationBasePath, locationChildPath, history],
- );
+ useEffect(() => {
+ if (
+ `/${locationBasePath}/` === Constants.Paths.FOLDERS &&
+ parseInt(locationChildPath, 10) < 1
+ ) {
+ navigateToFolderByFolderId(locationChildPath, history);
+ }
+ }, [locationBasePath, locationChildPath, history]);
window.addEventListener('resize', checkScreenSize);
- useEffect(
- () => {
- if (!locationBasePath) {
- dispatch(setBreadcrumbs({}, location));
- return;
- }
+ useEffect(() => {
+ if (!locationBasePath) {
+ dispatch(setBreadcrumbs({}, location));
+ return;
+ }
- const path = `/${locationBasePath}/`;
+ const path = `/${locationBasePath}/`;
- if (
- [
- Constants.Paths.INBOX,
- Constants.Paths.SENT,
- Constants.Paths.DELETED,
- Constants.Paths.DRAFTS,
- ].includes(path) ||
- (path === Constants.Paths.FOLDERS && !locationChildPath)
- ) {
- dispatch(setBreadcrumbs(Constants.Breadcrumbs.MESSAGES, location));
- } else if (path === Constants.Paths.FOLDERS && locationChildPath) {
- dispatch(setBreadcrumbs(Constants.Breadcrumbs.FOLDERS, location));
- } else if (path === Constants.Paths.COMPOSE) {
- dispatch(setBreadcrumbs(Constants.Breadcrumbs.INBOX, location));
- } else if (
- path ===
- (Constants.Paths.MESSAGE_THREAD ||
- Constants.Paths.REPLY ||
- Constants.Paths.COMPOSE) &&
- activeFolder
- ) {
- dispatch(
- setBreadcrumbs(
- {
- path: `${Constants.Paths.FOLDERS}${activeFolder.folderId}`,
- label: `Back to ${
- activeFolder.folderId < 1
- ? activeFolder.name.toLowerCase()
- : activeFolder.name
- }`,
- },
- location,
- ),
- );
- }
- },
- [
- activeFolder,
- dispatch,
- location,
- locationBasePath,
- locationChildPath,
- messageDetails?.subject,
- ],
- );
+ if (
+ [
+ Constants.Paths.INBOX,
+ Constants.Paths.SENT,
+ Constants.Paths.DELETED,
+ Constants.Paths.DRAFTS,
+ ].includes(path) ||
+ (path === Constants.Paths.FOLDERS && !locationChildPath)
+ ) {
+ dispatch(setBreadcrumbs(Constants.Breadcrumbs.MESSAGES, location));
+ } else if (path === Constants.Paths.FOLDERS && locationChildPath) {
+ dispatch(setBreadcrumbs(Constants.Breadcrumbs.FOLDERS, location));
+ } else if (path === Constants.Paths.COMPOSE) {
+ dispatch(setBreadcrumbs(Constants.Breadcrumbs.INBOX, location));
+ } else if (
+ path ===
+ (Constants.Paths.MESSAGE_THREAD ||
+ Constants.Paths.REPLY ||
+ Constants.Paths.COMPOSE) &&
+ activeFolder
+ ) {
+ dispatch(
+ setBreadcrumbs(
+ {
+ path: `${Constants.Paths.FOLDERS}${activeFolder.folderId}`,
+ label: `Back to ${
+ activeFolder.folderId < 1
+ ? activeFolder.name.toLowerCase()
+ : activeFolder.name
+ }`,
+ },
+ location,
+ ),
+ );
+ }
+ }, [
+ activeFolder,
+ dispatch,
+ location,
+ locationBasePath,
+ locationChildPath,
+ messageDetails?.subject,
+ ]);
- useEffect(
- () => {
- if (messageDetails && !activeFolder) {
- dispatch(retrieveFolder(messageDetails?.threadFolderId));
- }
- },
- [messageDetails, activeFolder, dispatch],
- );
+ useEffect(() => {
+ if (messageDetails && !activeFolder) {
+ dispatch(retrieveFolder(messageDetails?.threadFolderId));
+ }
+ }, [messageDetails, activeFolder, dispatch]);
const breadcrumbSize = () => {
if (isMobile) {
@@ -133,7 +118,11 @@ const SmBreadcrumbs = () => {
!crumbs?.label ? 'breadcrumbs--hidden' : ''
}`}
>
-
+
{crumbs && (
diff --git a/src/applications/my-education-benefits/components/IntroductionProcessListV2.jsx b/src/applications/my-education-benefits/components/IntroductionProcessListV2.jsx
index b68905ed22f2..11185972f6b6 100644
--- a/src/applications/my-education-benefits/components/IntroductionProcessListV2.jsx
+++ b/src/applications/my-education-benefits/components/IntroductionProcessListV2.jsx
@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
function IntroductionProcessListV2() {
return (
-
+
Check your eligibility
Make sure you meet our eligibility requirements before you apply.
diff --git a/src/applications/representatives/components/common/Breadcrumbs.jsx b/src/applications/representatives/components/common/Breadcrumbs.jsx
index 2edb7743c1d1..899886f0105b 100644
--- a/src/applications/representatives/components/common/Breadcrumbs.jsx
+++ b/src/applications/representatives/components/common/Breadcrumbs.jsx
@@ -47,7 +47,7 @@ const Breadcrumbs = ({ pathname }) => {
});
return (
-
+
{breadcrumbs.map(({ link, label }) => (
{label}
diff --git a/src/applications/simple-forms/mock-alternate-header-21-0845/components/CustomHeader.jsx b/src/applications/simple-forms/mock-alternate-header-21-0845/components/CustomHeader.jsx
index a0e48ecf19d9..247b616062e1 100644
--- a/src/applications/simple-forms/mock-alternate-header-21-0845/components/CustomHeader.jsx
+++ b/src/applications/simple-forms/mock-alternate-header-21-0845/components/CustomHeader.jsx
@@ -77,7 +77,7 @@ const CustomHeader = ({ formData, formConfig, currentLocation }) => {
// With this custom header, breadcrumbs should not appear on the form pages.
// However we still want to show them on the introduction page and review page.
// Static breadcrumbs from content-build cannot be used with this custom header
-
+
Home
Authorize VA to release your information to a third-party source
diff --git a/src/applications/static-pages/manage-va-debt/MangeVADebtCTA.jsx b/src/applications/static-pages/manage-va-debt/MangeVADebtCTA.jsx
index 199ea546ccf9..9061e96165eb 100644
--- a/src/applications/static-pages/manage-va-debt/MangeVADebtCTA.jsx
+++ b/src/applications/static-pages/manage-va-debt/MangeVADebtCTA.jsx
@@ -6,7 +6,7 @@ const fsrUrl = getAppUrl('request-debt-help-form-5655');
const ManageVADebtCTA = () => (
<>
-
+
Home
Manage your VA debt
diff --git a/src/applications/toe/containers/ToeApp.jsx b/src/applications/toe/containers/ToeApp.jsx
index 0caca27ecc96..5b97b1d59124 100644
--- a/src/applications/toe/containers/ToeApp.jsx
+++ b/src/applications/toe/containers/ToeApp.jsx
@@ -31,101 +31,83 @@ function ToeApp({
const [fetchedUserInfo, setFetchedUserInfo] = useState(false);
const [fetchedDirectDeposit, setFetchedDirectDeposit] = useState(false);
- useEffect(
- () => {
- if (!user?.login?.currentlyLoggedIn) {
- return;
- }
- if (!fetchedUserInfo) {
- setFetchedUserInfo(true);
- getPersonalInformation();
- }
+ useEffect(() => {
+ if (!user?.login?.currentlyLoggedIn) {
+ return;
+ }
+ if (!fetchedUserInfo) {
+ setFetchedUserInfo(true);
+ getPersonalInformation();
+ }
- if (
- !sponsors?.loadedFromSavedState &&
- isArray(sponsorsSavedState?.sponsors)
- ) {
- setFormData(mapFormSponsors(formData, sponsorsSavedState));
- } else if (sponsorsInitial && !sponsors) {
- setFormData(mapFormSponsors(formData, sponsorsInitial));
- }
- },
- [
- fetchedUserInfo,
- formData,
- getPersonalInformation,
- user?.login?.currentlyLoggedIn,
- setFormData,
- sponsors,
- sponsorsInitial,
- sponsorsSavedState,
- ],
- );
+ if (
+ !sponsors?.loadedFromSavedState &&
+ isArray(sponsorsSavedState?.sponsors)
+ ) {
+ setFormData(mapFormSponsors(formData, sponsorsSavedState));
+ } else if (sponsorsInitial && !sponsors) {
+ setFormData(mapFormSponsors(formData, sponsorsInitial));
+ }
+ }, [
+ fetchedUserInfo,
+ formData,
+ getPersonalInformation,
+ user?.login?.currentlyLoggedIn,
+ setFormData,
+ sponsors,
+ sponsorsInitial,
+ sponsorsSavedState,
+ ]);
- useEffect(
- () => {
- if (isLOA3 !== formData.isLOA3) {
- setFormData({
- ...formData,
- isLOA3, // ES6 Syntax
- });
- }
- },
- [formData, setFormData, isLOA3],
- );
+ useEffect(() => {
+ if (isLOA3 !== formData.isLOA3) {
+ setFormData({
+ ...formData,
+ isLOA3, // ES6 Syntax
+ });
+ }
+ }, [formData, setFormData, isLOA3]);
- useEffect(
- () => {
- if (showMebEnhancements !== formData.showMebEnhancements) {
- setFormData({
- ...formData,
- showMebEnhancements,
- });
- }
- },
- [formData, setFormData, showMebEnhancements],
- );
+ useEffect(() => {
+ if (showMebEnhancements !== formData.showMebEnhancements) {
+ setFormData({
+ ...formData,
+ showMebEnhancements,
+ });
+ }
+ }, [formData, setFormData, showMebEnhancements]);
- useEffect(
- () => {
- if (showMebEnhancements06 !== formData.showMebEnhancements06) {
- setFormData({
- ...formData,
- showMebEnhancements06,
- });
- }
- },
- [formData, setFormData, showMebEnhancements06],
- );
+ useEffect(() => {
+ if (showMebEnhancements06 !== formData.showMebEnhancements06) {
+ setFormData({
+ ...formData,
+ showMebEnhancements06,
+ });
+ }
+ }, [formData, setFormData, showMebEnhancements06]);
- useEffect(
- () => {
- if (showMebEnhancements08 !== formData.showMebEnhancements08) {
- setFormData({
- ...formData,
- showMebEnhancements08,
- });
- }
- },
- [formData, setFormData, showMebEnhancements08],
- );
+ useEffect(() => {
+ if (showMebEnhancements08 !== formData.showMebEnhancements08) {
+ setFormData({
+ ...formData,
+ showMebEnhancements08,
+ });
+ }
+ }, [formData, setFormData, showMebEnhancements08]);
- useEffect(
- () => {
- if (!user?.login?.currentlyLoggedIn) {
- return;
- }
- if (!fetchedDirectDeposit) {
- setFetchedDirectDeposit(true);
- getDirectDeposit();
- }
- },
- [fetchedDirectDeposit, getDirectDeposit, user?.login?.currentlyLoggedIn],
- );
+ useEffect(() => {
+ if (!user?.login?.currentlyLoggedIn) {
+ return;
+ }
+ if (!fetchedDirectDeposit) {
+ setFetchedDirectDeposit(true);
+ getDirectDeposit();
+ }
+ }, [fetchedDirectDeposit, getDirectDeposit, user?.login?.currentlyLoggedIn]);
return (
<>
-
+
Home
Education and training
@@ -176,7 +158,4 @@ const mapDispatchToProps = {
setFormData: setData,
};
-export default connect(
- mapStateToProps,
- mapDispatchToProps,
-)(ToeApp);
+export default connect(mapStateToProps, mapDispatchToProps)(ToeApp);
diff --git a/src/applications/travel-pay/containers/IntroductionPage.jsx b/src/applications/travel-pay/containers/IntroductionPage.jsx
index f540fe6fb55f..500a3b376ef1 100644
--- a/src/applications/travel-pay/containers/IntroductionPage.jsx
+++ b/src/applications/travel-pay/containers/IntroductionPage.jsx
@@ -33,7 +33,7 @@ class IntroductionPage extends React.Component {
Follow the steps below to apply for beneficiary travel claim.
-
+
Prepare
To fill out this application, you’ll need your:
diff --git a/src/applications/verify-your-enrollment/components/EnrollmentVerificationBreadcrumbs.jsx b/src/applications/verify-your-enrollment/components/EnrollmentVerificationBreadcrumbs.jsx
index 8d48ca34ee7c..3255fe0d4c6b 100644
--- a/src/applications/verify-your-enrollment/components/EnrollmentVerificationBreadcrumbs.jsx
+++ b/src/applications/verify-your-enrollment/components/EnrollmentVerificationBreadcrumbs.jsx
@@ -31,5 +31,5 @@ export default function EnrollmentVerificationBreadcrumbs() {
,
);
}
- return {breadcrumbs} ;
+ return {breadcrumbs} ;
}
diff --git a/src/applications/virtual-agent/components/page/Disclaimer.jsx b/src/applications/virtual-agent/components/page/Disclaimer.jsx
index 77a22178c7b4..05558d2f94c3 100644
--- a/src/applications/virtual-agent/components/page/Disclaimer.jsx
+++ b/src/applications/virtual-agent/components/page/Disclaimer.jsx
@@ -4,7 +4,7 @@ import { CONTACTS } from '@department-of-veterans-affairs/component-library/cont
export default function Disclaimer() {
return (
<>
-
+
Home
Contact us
VA chatbot