diff --git a/src/applications/edu-benefits/10215/components/AboutPage.jsx b/src/applications/edu-benefits/10215/components/AboutPage.jsx index d6f11412aa5b..a380bb3104f1 100644 --- a/src/applications/edu-benefits/10215/components/AboutPage.jsx +++ b/src/applications/edu-benefits/10215/components/AboutPage.jsx @@ -18,7 +18,7 @@ const AboutPage = ({ props }) => { return (
@@ -67,6 +67,9 @@ const AboutPage = ({ props }) => { }; AboutPage.propTypes = { props: PropTypes.shape({ + location: PropTypes.shape({ + pathname: PropTypes.string.isRequired, + }).isRequired, router: PropTypes.shape({ push: PropTypes.func.isRequired, }).isRequired, diff --git a/src/applications/edu-benefits/10215/components/Breadcrumbs.jsx b/src/applications/edu-benefits/10215/components/Breadcrumbs.jsx index 72b9d6fc0e86..fe5db4c0f57e 100644 --- a/src/applications/edu-benefits/10215/components/Breadcrumbs.jsx +++ b/src/applications/edu-benefits/10215/components/Breadcrumbs.jsx @@ -1,16 +1,14 @@ import React from 'react'; +import PropTypes from 'prop-types'; import { VaBreadcrumbs } from '@department-of-veterans-affairs/web-components/react-bindings'; -import { BrowserRouter as Router, useLocation } from 'react-router-dom'; -const BreadcrumbsComponent = () => { - const location = useLocation(); - const { pathname } = location; +const Breadcrumbs = ({ pathname }) => { const crumbs = [ { href: '/', label: 'Home', }, - ...(pathname.endsWith('/10215/') + ...(pathname === '/' ? [ { href: '/find-forms/', @@ -48,11 +46,8 @@ const BreadcrumbsComponent = () => {