hide back button on first step of rep

This commit is contained in:
2024-10-09 12:43:33 +01:00
parent f678b5a2ff
commit 5458fddc99
+22 -16
View File
@@ -788,22 +788,28 @@ const Breadcrumbs = (props) => {
.currentReference .currentReference
} }
</li> */} </li> */}
<li className="govuk-breadcrumbs__link-item">
<a {typeof props.currentView
className="govuk-breadcrumbs__link" .representationCapacity != "undefined" &&
href="#" props.currentView.representationCapacity !=
onClick={() => { "" && (
setRepresentationCapacity(); <li className="govuk-breadcrumbs__link-item">
props.updateField( <a
"representationForm", className="govuk-breadcrumbs__link"
"representationType", href="#"
"" onClick={() => {
); setRepresentationCapacity();
}} props.updateField(
> "representationForm",
{t("common:back-link")} "representationType",
</a> ""
</li> );
}}
>
{t("common:back-link")}{" "}
</a>
</li>
)}
</> </>
)} )}
{router.pathname == "/account/personaldetails" && ( {router.pathname == "/account/personaldetails" && (