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:
Robert Bond
2024-06-06 05:40:28 +00:00
4 changed files with 55 additions and 48 deletions
@@ -208,7 +208,7 @@ const RepAgent = (props) => {
> >
{t("common:continue-button")} {t("common:continue-button")}
</button> </button>
{router.query.state != "edit" && (
<a <a
onClick={() => { onClick={() => {
setRepresentationCapacity(); setRepresentationCapacity();
@@ -222,6 +222,7 @@ const RepAgent = (props) => {
> >
{t("common:back-link")} {t("common:back-link")}
</a> </a>
)}
</div> </div>
</div> </div>
)} )}
@@ -192,6 +192,7 @@ const RepAppellant = (props) => {
> >
{t("common:continue-button")} {t("common:continue-button")}
</button> </button>
{router.query.state != "edit" && (
<a <a
onClick={() => { onClick={() => {
setRepresentationCapacity(); setRepresentationCapacity();
@@ -205,6 +206,7 @@ const RepAppellant = (props) => {
> >
{t("common:back-link")} {t("common:back-link")}
</a> </a>
)}
</div> </div>
</div> </div>
)} )}
@@ -480,6 +480,7 @@ let RepLPA = (props) => {
> >
{t("common:continue-button")} {t("common:continue-button")}
</button> </button>
{router.query.state != "edit" && (
<a <a
onClick={() => { onClick={() => {
//setRepresentationCapacity(); //setRepresentationCapacity();
@@ -493,6 +494,7 @@ let RepLPA = (props) => {
> >
{t("common:back-link")} {t("common:back-link")}
</a> </a>
)}
</> </>
)} )}
</div> </div>
@@ -116,6 +116,7 @@ const RepLandOwner = (props) => {
> >
{t("common:continue-button")} {t("common:continue-button")}
</button> </button>
{router.query.state != "edit" && (
<a <a
onClick={() => { onClick={() => {
setRepresentationCapacity(); setRepresentationCapacity();
@@ -124,6 +125,7 @@ const RepLandOwner = (props) => {
> >
{t("common:back-link")} {t("common:back-link")}
</a> </a>
)}
</div> </div>
</div> </div>
)} )}