added redux store for form elements
This commit is contained in:
@@ -16,10 +16,11 @@ import useTranslation from "next-translate/useTranslation";
|
||||
import { setForm, getFormObj } from "../../store/formData/action";
|
||||
import { getFormData } from "../../actions";
|
||||
import xpath from "xpath";
|
||||
import { reduxForm } from "redux-form";
|
||||
|
||||
import BuildSection from "../../components/newappeal/buildsection";
|
||||
|
||||
const Home = (props) => {
|
||||
let Home = (props) => {
|
||||
const { footerLinks, pages, formData } = props;
|
||||
let { t, lang } = useTranslation();
|
||||
|
||||
@@ -57,8 +58,6 @@ const Home = (props) => {
|
||||
/// to get dropdowns names
|
||||
// form/tabs/tab[*]//rows/row//control[@classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}"]/@datafieldname
|
||||
|
||||
console.log(titles);
|
||||
|
||||
const Sections = Object.keys(tabs).map((key, index) => (
|
||||
<BuildSection
|
||||
formXML={formXML}
|
||||
@@ -68,6 +67,8 @@ const Home = (props) => {
|
||||
/>
|
||||
));
|
||||
|
||||
const { onSubmit } = props;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
@@ -85,6 +86,7 @@ const Home = (props) => {
|
||||
<BuildSection
|
||||
formXML={formXML}
|
||||
sectionCount={sectionCount}
|
||||
onSubmit={onSubmit}
|
||||
/>
|
||||
</div>
|
||||
<Footer footerLinks={footerLinks} />
|
||||
@@ -133,6 +135,7 @@ const mapStateToProps = (state) => {
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
form: state.form,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user