import Link from "next/link"; import _ from "lodash"; import React, { useState, useEffect } 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 { updatePassword } from "../../actions"; const RenderTextfield = ({ id, className, rows, datafieldname, name, label, input, type, errorMsg, meta: { touched, error }, ...custom }) => { return ( <>
Go to My Portal
> )} >; }; 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)); }, }; }; const selector = formValueSelector("changepasswordForm"); // <-- same as form name export default connect( mapStateToProps, mapDispatchToProps )( reduxForm({ form: "changepasswordForm", destroyOnUnmount: false, })(ChangePassword) );