diff --git a/src/applications/mhv/medications/actions/breadcrumbs.js b/src/applications/mhv/medications/actions/breadcrumbs.js deleted file mode 100644 index 5f760dfabf4b..000000000000 --- a/src/applications/mhv/medications/actions/breadcrumbs.js +++ /dev/null @@ -1,14 +0,0 @@ -import { Actions } from '../util/actionTypes'; - -export const setBreadcrumbs = crumbs => async dispatch => { - dispatch({ - type: Actions.Breadcrumbs.SET_BREAD_CRUMBS, - payload: { crumbs }, - }); -}; - -export const removeBreadcrumbs = () => async dispatch => { - dispatch({ - type: Actions.Breadcrumbs.REMOVE_BREAD_CRUMB, - }); -}; diff --git a/src/applications/mhv/medications/components/MedicationsList/MedicationsListCard.jsx b/src/applications/mhv/medications/components/MedicationsList/MedicationsListCard.jsx index 7304d354291e..e5749af1ab41 100644 --- a/src/applications/mhv/medications/components/MedicationsList/MedicationsListCard.jsx +++ b/src/applications/mhv/medications/components/MedicationsList/MedicationsListCard.jsx @@ -9,15 +9,11 @@ import { dispStatusForRefillsLeft, DD_ACTIONS_PAGE_TYPE, } from '../../util/constants'; -import { setBreadcrumbs } from '../../actions/breadcrumbs'; import { setPrescriptionDetails } from '../../actions/prescriptions'; import { selectRefillContentFlag } from '../../util/selectors'; const MedicationsListCard = ({ rx }) => { const dispatch = useDispatch(); - const pagination = useSelector( - state => state.rx.prescriptions?.prescriptionsPagination, - ); const showRefillContent = useSelector(selectRefillContentFlag); let showRefillRemaining = false; @@ -31,12 +27,6 @@ const MedicationsListCard = ({ rx }) => { return
{rx.refillRemaining} refills left
; }; const handleLinkClick = () => { - dispatch( - setBreadcrumbs({ - url: `/?page=${pagination?.currentPage || 1}`, - label: 'Medications', - }), - ); dispatch(setPrescriptionDetails(rx)); }; return ( diff --git a/src/applications/mhv/medications/components/RefillPrescriptions/RenewablePrescriptions.jsx b/src/applications/mhv/medications/components/RefillPrescriptions/RenewablePrescriptions.jsx index 463d38e06958..52576df72b63 100644 --- a/src/applications/mhv/medications/components/RefillPrescriptions/RenewablePrescriptions.jsx +++ b/src/applications/mhv/medications/components/RefillPrescriptions/RenewablePrescriptions.jsx @@ -4,7 +4,6 @@ import { Link } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import { VaPagination } from '@department-of-veterans-affairs/component-library/dist/react-bindings'; import { waitForRenderThenFocus } from '@department-of-veterans-affairs/platform-utilities/ui'; -import { setBreadcrumbs } from '../../actions/breadcrumbs'; import { setPrescriptionDetails } from '../../actions/prescriptions'; import { DD_ACTIONS_PAGE_TYPE, medicationsUrls } from '../../util/constants'; import { dateFormat, fromToNumbs } from '../../util/helpers'; @@ -50,12 +49,6 @@ const RenewablePrescriptions = ({ renewablePrescriptionsList = [] }) => { // Functions const onRxLinkClick = rx => { - dispatch( - setBreadcrumbs({ - url: medicationsUrls.subdirectories.REFILL, - label: 'Refill prescriptions', - }), - ); dispatch(setPrescriptionDetails(rx)); }; diff --git a/src/applications/mhv/medications/containers/Prescriptions.jsx b/src/applications/mhv/medications/containers/Prescriptions.jsx index 819d81ab76bb..e8ce899303ea 100644 --- a/src/applications/mhv/medications/containers/Prescriptions.jsx +++ b/src/applications/mhv/medications/containers/Prescriptions.jsx @@ -20,7 +20,6 @@ import { getAllergiesList, clearAllergiesError, } from '../actions/prescriptions'; -import { setBreadcrumbs } from '../actions/breadcrumbs'; import MedicationsList from '../components/MedicationsList/MedicationsList'; import MedicationsListSort from '../components/MedicationsList/MedicationsListSort'; import { @@ -476,22 +475,11 @@ const Prescriptions = () => { dispatch(clearAllergiesError()); }; - const handletoRefillLink = () => { - dispatch( - setBreadcrumbs({ - url: medicationsUrls.subdirectories.BASE, - label: 'Medications', - }), - ); - }; - const content = () => { if (!isLoading) { return (