refactor phase 3a components chunk 1 targeted actions imports
This commit is contained in:
@@ -4,7 +4,7 @@ import { useRouter } from "next/router";
|
||||
import { useEffect } from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { formValueSelector } from "redux-form";
|
||||
import { sendEmail } from "../../actions";
|
||||
import { sendEmail } from "../../actions/services/notifyService";
|
||||
import { setCurrentSection } from "../../store/appealType/action";
|
||||
import { getFormCollectionByID } from "../utils";
|
||||
|
||||
@@ -28,7 +28,7 @@ let CompleteAppeal = (props) => {
|
||||
"/accounts(" + props.appealType.appealLPA + ")",
|
||||
"pinswg_name": props.appealType.caseReference.ticketnumber,
|
||||
[updateBindAppealTypeToIncident + "@odata.bind"]:
|
||||
"/incidents(" + incidentId + ")",
|
||||
"/incidents(" + incidentId + ")"
|
||||
});
|
||||
|
||||
updateBody = JSON.stringify(updateBody);
|
||||
@@ -53,7 +53,7 @@ let CompleteAppeal = (props) => {
|
||||
const personalisation = {
|
||||
"caseReference": props.appealType.caseReference.ticketnumber,
|
||||
"emailAddress": props.props.accountDetails.loggedinUserEmail,
|
||||
"linkExpiry": 10 * 60,
|
||||
"linkExpiry": 10 * 60
|
||||
};
|
||||
sendEmail(templateId, emailAddress, personalisation, reference);
|
||||
|
||||
@@ -73,7 +73,7 @@ let CompleteAppeal = (props) => {
|
||||
props.props.accountDetails.loggedinUserId,
|
||||
props.appealType.appealTypeID,
|
||||
props.props.accountDetails.loggedinUserEmail,
|
||||
props.props.accountDetails.containerID,
|
||||
props.props.accountDetails.containerID
|
||||
]);
|
||||
|
||||
let { t } = useTranslation();
|
||||
@@ -87,7 +87,7 @@ let CompleteAppeal = (props) => {
|
||||
onSubmit,
|
||||
handleSubmit,
|
||||
formTitle,
|
||||
setCurrentSection,
|
||||
setCurrentSection
|
||||
} = props;
|
||||
|
||||
const currentSection = props.appealType.currentSection;
|
||||
@@ -157,7 +157,7 @@ const mapStateToProps = (state) => {
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
appealType: state.appealType
|
||||
//form: state.form,
|
||||
};
|
||||
};
|
||||
@@ -166,7 +166,7 @@ const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
setCurrentSection: (currentSection) => {
|
||||
dispatch(setCurrentSection(currentSection));
|
||||
},
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user