removed the help section on registration
This commit is contained in:
+16
-55
@@ -74,16 +74,17 @@ const Home = (props) => {
|
|||||||
"account:register-new-account-checking-label"
|
"account:register-new-account-checking-label"
|
||||||
)
|
)
|
||||||
: props.accountDetails
|
: props.accountDetails
|
||||||
.accCr === "created"
|
.accCr === "created"
|
||||||
? t(
|
? t(
|
||||||
"account:register-new-account-status-created-label"
|
"account:register-new-account-status-created-label"
|
||||||
)
|
)
|
||||||
: props.accountDetails
|
: props.accountDetails
|
||||||
.accCr === "exists"
|
.accCr ===
|
||||||
? t(
|
"exists"
|
||||||
"account:register-new-account-status-not-created-label"
|
? t(
|
||||||
)
|
"account:register-new-account-status-not-created-label"
|
||||||
: "wewer"}
|
)
|
||||||
|
: "wewer"}
|
||||||
</h1>
|
</h1>
|
||||||
)}
|
)}
|
||||||
<RegisterForm
|
<RegisterForm
|
||||||
@@ -105,46 +106,6 @@ const Home = (props) => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
@@ -175,15 +136,15 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
|||||||
return {
|
return {
|
||||||
redirect: {
|
redirect: {
|
||||||
destination: "/auth/signin",
|
destination: "/auth/signin",
|
||||||
permanent: false,
|
permanent: false
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
loggedInUserEmail: thisSession.user.email,
|
loggedInUserEmail: thisSession.user.email
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -196,7 +157,7 @@ const mapStateToProps = (state) => {
|
|||||||
appealType: state.appealType,
|
appealType: state.appealType,
|
||||||
LPAData: state.LPAData,
|
LPAData: state.LPAData,
|
||||||
form: state.form,
|
form: state.form,
|
||||||
accountDetails: state.accountDetails,
|
accountDetails: state.accountDetails
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user