refactor phase 3a components chunk 1 targeted actions imports
This commit is contained in:
@@ -5,13 +5,14 @@ import { useState } from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { formValueSelector, reduxForm } from "redux-form";
|
||||
import xpath from "xpath";
|
||||
import { sendEmail, uploadFiles } from "../../actions";
|
||||
import { uploadFiles } from "../../actions/services/documentService";
|
||||
import { sendEmail } from "../../actions/services/notifyService";
|
||||
import {
|
||||
setCurrentSection,
|
||||
setDocumentsList,
|
||||
setFilesForAppeal,
|
||||
setNewAppealProgress,
|
||||
setFileCount,
|
||||
setFileCount
|
||||
} from "../../store/appealType/action";
|
||||
import { getFormCollectionByID, getProgressObj, updateLinks } from "../utils";
|
||||
import BuildRow from "./buildrow";
|
||||
@@ -48,7 +49,7 @@ let BuildSection = (props) => {
|
||||
setCurrentSection,
|
||||
refno,
|
||||
gotoSection,
|
||||
mandatoryFieldsData,
|
||||
mandatoryFieldsData
|
||||
} = props;
|
||||
|
||||
const documentListObj = props.appealType.documentList;
|
||||
@@ -159,7 +160,7 @@ let BuildSection = (props) => {
|
||||
typeof filesUploadObj[key][j].name != "undefined" &&
|
||||
buildAppealFilesArray.push({
|
||||
"name": filesUploadObj[key][j].name,
|
||||
"size": filesUploadObj[key][j].size,
|
||||
"size": filesUploadObj[key][j].size
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -220,7 +221,7 @@ let BuildSection = (props) => {
|
||||
"/contacts(" + props.props.accountDetails.loggedinUserId + ")",
|
||||
"pinswg_name": props.appealType.caseReference.ticketnumber,
|
||||
[updateBindAppealTypeToIncident + "@odata.bind"]:
|
||||
"/incidents(" + incidentId + ")",
|
||||
"/incidents(" + incidentId + ")"
|
||||
});
|
||||
|
||||
updateBody = JSON.stringify(updateBody);
|
||||
@@ -261,7 +262,7 @@ let BuildSection = (props) => {
|
||||
props.appealType.caseReference.ticketnumber +
|
||||
"&inid=" +
|
||||
props.appealType.caseReference.incidentid,
|
||||
"linkExpiry": 10 * 60,
|
||||
"linkExpiry": 10 * 60
|
||||
};
|
||||
|
||||
// console.log(
|
||||
@@ -316,7 +317,7 @@ let BuildSection = (props) => {
|
||||
for (let j in filesUploadObj[key]) {
|
||||
buildAppealFilesArray.push({
|
||||
"name": filesUploadObj[key][j].name,
|
||||
"size": filesUploadObj[key][j].size,
|
||||
"size": filesUploadObj[key][j].size
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -665,14 +666,14 @@ const mapStateToProps = (state, ownProps) => {
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
initialValues: state.appealType.caseReference.caseDetails,
|
||||
currentView: state.currentView,
|
||||
currentView: state.currentView
|
||||
}
|
||||
: {
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
currentView: state.currentView,
|
||||
currentView: state.currentView
|
||||
//form: state.form,
|
||||
};
|
||||
};
|
||||
@@ -696,7 +697,7 @@ const mapDispatchToProps = (dispatch) => {
|
||||
},
|
||||
setFileCount: (fileCount) => {
|
||||
dispatch(setFileCount(fileCount));
|
||||
},
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -758,6 +759,6 @@ export default connect(
|
||||
form: "appealForm",
|
||||
destroyOnUnmount: false,
|
||||
enableReinitialize: true, // this is needed!!
|
||||
validate,
|
||||
validate
|
||||
})(BuildSection)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user