Merged PR 2133: removed the help section on registration
removed the help section on registration Related work items: #21093
This commit is contained in:
+16
-55
@@ -74,16 +74,17 @@ const Home = (props) => {
|
||||
"account:register-new-account-checking-label"
|
||||
)
|
||||
: props.accountDetails
|
||||
.accCr === "created"
|
||||
? t(
|
||||
"account:register-new-account-status-created-label"
|
||||
)
|
||||
: props.accountDetails
|
||||
.accCr === "exists"
|
||||
? t(
|
||||
"account:register-new-account-status-not-created-label"
|
||||
)
|
||||
: "wewer"}
|
||||
.accCr === "created"
|
||||
? t(
|
||||
"account:register-new-account-status-created-label"
|
||||
)
|
||||
: props.accountDetails
|
||||
.accCr ===
|
||||
"exists"
|
||||
? t(
|
||||
"account:register-new-account-status-not-created-label"
|
||||
)
|
||||
: "wewer"}
|
||||
</h1>
|
||||
)}
|
||||
<RegisterForm
|
||||
@@ -105,46 +106,6 @@ const Home = (props) => {
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
{registerFormComplete != true ||
|
||||
accountCreatedComplete != true ? (
|
||||
<div className="govuk-grid-column-one-third">
|
||||
<h2 className="">
|
||||
{t("account:help-heading")}
|
||||
</h2>
|
||||
|
||||
<h3>
|
||||
{t(
|
||||
"account:help-sub-heading-1"
|
||||
)}
|
||||
</h3>
|
||||
|
||||
<p className="govuk-body">
|
||||
{t("account:help-paragraph-1")}
|
||||
</p>
|
||||
|
||||
<h3>
|
||||
{t(
|
||||
"account:help-sub-heading-2"
|
||||
)}
|
||||
</h3>
|
||||
|
||||
<p className="govuk-body">
|
||||
{t("account:help-paragraph-2")}
|
||||
</p>
|
||||
|
||||
<h3>
|
||||
{t(
|
||||
"account:help-sub-heading-3"
|
||||
)}
|
||||
</h3>
|
||||
|
||||
<p className="govuk-body">
|
||||
{t("account:help-paragraph-3")}
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
@@ -175,15 +136,15 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
return {
|
||||
redirect: {
|
||||
destination: "/auth/signin",
|
||||
permanent: false,
|
||||
},
|
||||
permanent: false
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
loggedInUserEmail: thisSession.user.email,
|
||||
},
|
||||
loggedInUserEmail: thisSession.user.email
|
||||
}
|
||||
};
|
||||
}
|
||||
);
|
||||
@@ -196,7 +157,7 @@ const mapStateToProps = (state) => {
|
||||
appealType: state.appealType,
|
||||
LPAData: state.LPAData,
|
||||
form: state.form,
|
||||
accountDetails: state.accountDetails,
|
||||
accountDetails: state.accountDetails
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user