Merged PR 1261: hide back button on first step of rep
hide back button on first step of rep Related work items: #12466
This commit is contained in:
+22
-16
@@ -788,22 +788,28 @@ const Breadcrumbs = (props) => {
|
||||
.currentReference
|
||||
}
|
||||
</li> */}
|
||||
<li className="govuk-breadcrumbs__link-item">
|
||||
<a
|
||||
className="govuk-breadcrumbs__link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
setRepresentationCapacity();
|
||||
props.updateField(
|
||||
"representationForm",
|
||||
"representationType",
|
||||
""
|
||||
);
|
||||
}}
|
||||
>
|
||||
{t("common:back-link")}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{typeof props.currentView
|
||||
.representationCapacity != "undefined" &&
|
||||
props.currentView.representationCapacity !=
|
||||
"" && (
|
||||
<li className="govuk-breadcrumbs__link-item">
|
||||
<a
|
||||
className="govuk-breadcrumbs__link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
setRepresentationCapacity();
|
||||
props.updateField(
|
||||
"representationForm",
|
||||
"representationType",
|
||||
""
|
||||
);
|
||||
}}
|
||||
>
|
||||
{t("common:back-link")}{" "}
|
||||
</a>
|
||||
</li>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{router.pathname == "/account/personaldetails" && (
|
||||
|
||||
Reference in New Issue
Block a user