rioght mouse click on view all

This commit is contained in:
2025-05-22 14:15:42 +01:00
parent 3877323b9b
commit 29abd0efd0
12 changed files with 136 additions and 124 deletions
+6 -9
View File
@@ -43,6 +43,7 @@ const Breadcrumbs = (props) => {
? 9
: "";
var viewAllKey = currentView?.viewKey || router.query.viewKey;
return (
<>
<nav
@@ -475,24 +476,20 @@ const Breadcrumbs = (props) => {
</Link>
</li>
<li className="govuk-breadcrumbs__list-item">
{currentView.currentView.viewKey ==
{viewAllKey ==
"awaitingSubmissionDetails" &&
t(
"myportal:awatitingsubmission-card-title"
)}
{currentView.currentView.viewKey ==
"watchedCases" &&
{viewAllKey == "watchedCases" &&
t("myportal:watchedcases-card-title")}
{currentView.currentView.viewKey ==
"myCases" &&
{viewAllKey == "myCases" &&
t("myportal:mycases-card-title")}
{currentView.currentView.viewKey ==
"myRepresentations" &&
{viewAllKey == "myRepresentations" &&
t(
"myportal:myrepresentations-card-title"
)}
{currentView.currentView.viewKey ==
"mySubmittedReps" &&
{viewAllKey == "mySubmittedReps" &&
"Submitted representations"}
</li>
</>