22541 extract deterministic case breadcrumb branches into factory maps
This commit is contained in:
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user