import _ from "lodash"; import React, { useState } from "react"; import { useRouter } from "next/router"; import useTranslation from "next-translate/useTranslation"; import { Field, reduxForm, formValueSelector, getFormSubmitErrors, } from "redux-form"; import { useDispatch, useSelector, shallowEqual, 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 ( <>

Check that the details you entered are correct.

About you

First name
{ props.props.props.form.accountRegisterForm.values .firstname }
{ setRegisterFormComplete(false); }} > Change first name
Last name
{ props.props.props.form.accountRegisterForm.values .lastname }
{ setRegisterFormComplete(false); }} > Change last name
Email address
{ props.props.props.form.accountRegisterForm.values .emailaddress1 }
{ setRegisterFormComplete(false); }} > Change {" "} email address
Telephone
{ props.props.props.form.accountRegisterForm.values .telephone1 }
{ setRegisterFormComplete(false); }} > Change telephone
{/*
Company/Group
{ props.props.props.form.accountRegisterForm.values .companygroup }
{ setRegisterFormComplete(false); }} > Change {" "} company/group
*/}

Your address

Address Line 1
{ props.props.props.form.accountRegisterForm.values .address1_line1 }
{ setRegisterFormComplete(false); }} > Change {" "} address line 1
Address line 2
{ props.props.props.form.accountRegisterForm.values .address1_line2 }
{ setRegisterFormComplete(false); }} > Change {" "} address line 2
Town/City
{ props.props.props.form.accountRegisterForm.values .address1_city }
{ setRegisterFormComplete(false); }} > Change {" "} town/city
County
{ props.props.props.form.accountRegisterForm.values .address1_county }
{ setRegisterFormComplete(false); }} > Change {" "} county
Postcode
{ props.props.props.form.accountRegisterForm.values .address1_postalcode }
{ setRegisterFormComplete(false); }} > Change {" "} postcode
); }; 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);