import useTranslation from "next-translate/useTranslation"; import { useRouter } from "next/router"; import React from "react"; import { connect } from "react-redux"; import { setAccCr } from "../../store/accountDetails/action"; const RegisterFormCheck = (props) => { const { footerLinks, pages, handleSubmit, value, setRegisterFormComplete, setAccountCreatedComplete, setAccCr, } = props; let { t, lang } = useTranslation(); const router = useRouter(); const { locale } = router; return ( <>

{t("account:register-new-account-check-details-paragraph")}

{" "} {t("account:register-new-account-sub-heading-1")}

{t("account:register-new-account-first-name-label")}
{ props.props.props.form.accountRegisterForm.values .firstname }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {t( "account:register-new-account-first-name-label" )}
{t("account:register-new-account-last-name-label")}
{ props.props.props.form.accountRegisterForm.values .lastname }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {t( "account:register-new-account-last-name-label" )}
{t("account:register-new-account-email-address-label")}
{ props.props.props.form.accountRegisterForm.values .emailaddress1 }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {" "} {t( "account:register-new-account-email-address-label" )}
{t("account:register-new-account-phone-label")}
{ props.props.props.form.accountRegisterForm.values .telephone1 }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {t("account:register-new-account-phone-label")}

{t("account:register-new-account-sub-heading-2")}

{t("account:register-new-account-address-line-1-label")}
{ props.props.props.form.accountRegisterForm.values .address1_line1 }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {" "} {t( "account:register-new-account-address-line-1-label" )}
{t("account:register-new-account-address-line-2-label")}
{ props.props.props.form.accountRegisterForm.values .address1_line2 }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {" "} {t( "account:register-new-account-address-line-2-label" )}
{t("account:register-new-account-town-label")}
{ props.props.props.form.accountRegisterForm.values .address1_city }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {" "} {t("account:register-new-account-town-label")}
{" "} {t("account:register-new-account-county-label")}
{ props.props.props.form.accountRegisterForm.values .address1_county }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {" "} {t("account:register-new-account-county-label")}
{" "} {t("account:register-new-account-postcode-label")}
{ props.props.props.form.accountRegisterForm.values .address1_postalcode }
{ setRegisterFormComplete(false); }} > {t("common:change-link-label")} {" "} {t( "account:register-new-account-postcode-label" )}
); }; const mapStateToProps = (state) => { return { search: state.search, searchResultsObj: state.searchResultsObj, formData: state.formData, appealType: state.appealType, accountDetails: state.accountDetails, //form: state.form, }; }; const mapDispatchToProps = (dispatch) => { return { setCurrentSection: (currentSection) => { dispatch(setCurrentSection(currentSection)); }, setAccCr: (accState) => { dispatch(setAccCr(accState)); }, }; }; export default connect(mapStateToProps, mapDispatchToProps)(RegisterFormCheck);