updated breadcrumb when key is used
This commit is contained in:
@@ -475,23 +475,26 @@ const Breadcrumbs = (props) => {
|
||||
</Link>
|
||||
</li>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
{currentView.currentView.viewKey ==
|
||||
{(currentView.currentView.viewKey ||
|
||||
router.query.key) ==
|
||||
"awaitingSubmissionDetails" &&
|
||||
t(
|
||||
"myportal:awatitingsubmission-card-title"
|
||||
)}
|
||||
{currentView.currentView.viewKey ==
|
||||
"watchedCases" &&
|
||||
{(currentView.currentView.viewKey ||
|
||||
router.query.key) == "watchedCases" &&
|
||||
t("myportal:watchedcases-card-title")}
|
||||
{currentView.currentView.viewKey ==
|
||||
"myCases" &&
|
||||
{(currentView.currentView.viewKey ||
|
||||
router.query.key) == "myCases" &&
|
||||
t("myportal:mycases-card-title")}
|
||||
{currentView.currentView.viewKey ==
|
||||
{(currentView.currentView.viewKey ||
|
||||
router.query.key) ==
|
||||
"myRepresentations" &&
|
||||
t(
|
||||
"myportal:myrepresentations-card-title"
|
||||
)}
|
||||
{currentView.currentView.viewKey ==
|
||||
{(currentView.currentView.viewKey ||
|
||||
router.query.key) ==
|
||||
"mySubmittedReps" &&
|
||||
"Submitted representations"}
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user