22541 extract deterministic case breadcrumb branches into factory maps

This commit is contained in:
2026-04-09 14:33:54 +01:00
parent 8edd23d621
commit 17795f20c7
4 changed files with 95 additions and 32 deletions
+1 -32
View File
@@ -227,6 +227,7 @@ const Breadcrumbs = (props) => {
breadcrumbLabel,
fallbackSearchTitle,
currentReference,
nestedSearchString,
caseReferenceDisplay,
renderAnchorCrumb,
renderLinkCrumb,
@@ -321,38 +322,6 @@ const Breadcrumbs = (props) => {
</>
)}
{isPath("/myportal/case") && (
<>
{renderLinkCrumb(
isWelsh
? `/${router.locale}/fymhorth`
: "/myportal",
t("common:breadcrumb-my-portal")
)}
{renderCaseReferenceCrumb(currentReference)}
</>
)}
{isPath("/case/id/[incident]") && (
<>
{renderLinkCrumb(
isWelsh
? `/${router.locale}/chwiliadcyfeiriadau`
: "/addresssearch",
t("common:breadcrumb-address-search")
)}
{renderLinkCrumb(
isWelsh
? `/${router.locale}/canlyniadaucyfeiriadau?${nestedSearchString}`
: `/addresssearchresults?${nestedSearchString}`,
t(
"common:breadcrumb-address-search-results"
)
)}
{renderCaseReferenceCrumb(currentReference)}
</>
)}
{isPath("/myportal/case/id/[incident]") && (
<>
{renderMyPortalCrumb()}