Merged PR 1182: conditional display of back link if saved rep
conditional display of back link if saved rep Related work items: #11353
This commit is contained in:
@@ -208,20 +208,21 @@ const RepAgent = (props) => {
|
|||||||
>
|
>
|
||||||
{t("common:continue-button")}
|
{t("common:continue-button")}
|
||||||
</button>
|
</button>
|
||||||
|
{router.query.state != "edit" && (
|
||||||
<a
|
<a
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setRepresentationCapacity();
|
setRepresentationCapacity();
|
||||||
props.updateField(
|
props.updateField(
|
||||||
"representationForm",
|
"representationForm",
|
||||||
"representationCapacity",
|
"representationCapacity",
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
className="govuk-link"
|
className="govuk-link"
|
||||||
>
|
>
|
||||||
{t("common:back-link")}
|
{t("common:back-link")}
|
||||||
</a>
|
</a>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -192,19 +192,21 @@ const RepAppellant = (props) => {
|
|||||||
>
|
>
|
||||||
{t("common:continue-button")}
|
{t("common:continue-button")}
|
||||||
</button>
|
</button>
|
||||||
<a
|
{router.query.state != "edit" && (
|
||||||
onClick={() => {
|
<a
|
||||||
setRepresentationCapacity();
|
onClick={() => {
|
||||||
props.updateField(
|
setRepresentationCapacity();
|
||||||
"representationForm",
|
props.updateField(
|
||||||
"representationType",
|
"representationForm",
|
||||||
""
|
"representationType",
|
||||||
);
|
""
|
||||||
}}
|
);
|
||||||
className="govuk-link"
|
}}
|
||||||
>
|
className="govuk-link"
|
||||||
{t("common:back-link")}
|
>
|
||||||
</a>
|
{t("common:back-link")}
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -480,19 +480,21 @@ let RepLPA = (props) => {
|
|||||||
>
|
>
|
||||||
{t("common:continue-button")}
|
{t("common:continue-button")}
|
||||||
</button>
|
</button>
|
||||||
<a
|
{router.query.state != "edit" && (
|
||||||
onClick={() => {
|
<a
|
||||||
//setRepresentationCapacity();
|
onClick={() => {
|
||||||
props.updateField(
|
//setRepresentationCapacity();
|
||||||
"representationForm",
|
props.updateField(
|
||||||
"representationType",
|
"representationForm",
|
||||||
""
|
"representationType",
|
||||||
);
|
""
|
||||||
}}
|
);
|
||||||
className="govuk-link"
|
}}
|
||||||
>
|
className="govuk-link"
|
||||||
{t("common:back-link")}
|
>
|
||||||
</a>
|
{t("common:back-link")}
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -116,14 +116,16 @@ const RepLandOwner = (props) => {
|
|||||||
>
|
>
|
||||||
{t("common:continue-button")}
|
{t("common:continue-button")}
|
||||||
</button>
|
</button>
|
||||||
<a
|
{router.query.state != "edit" && (
|
||||||
onClick={() => {
|
<a
|
||||||
setRepresentationCapacity();
|
onClick={() => {
|
||||||
}}
|
setRepresentationCapacity();
|
||||||
className="govuk-link"
|
}}
|
||||||
>
|
className="govuk-link"
|
||||||
{t("common:back-link")}
|
>
|
||||||
</a>
|
{t("common:back-link")}
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user