refactor phase 3a myportal advanced and address search imports
This commit is contained in:
@@ -4,13 +4,13 @@ import useTranslation from "next-translate/useTranslation";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import { connect } from "react-redux";
|
||||
import { getIP } from "../../actions/core/logger";
|
||||
import { getPersonalAccount } from "../../actions/services/accountService";
|
||||
import {
|
||||
getAppealsTypes,
|
||||
getIP,
|
||||
getLPA,
|
||||
getPersonalAccount,
|
||||
getProjectTypes,
|
||||
} from "../../actions";
|
||||
getProjectTypes
|
||||
} from "../../actions/services/referenceDataService";
|
||||
import Breadcrumbs from "../../components/breadcrumbs";
|
||||
import CookieBanner from "../../components/cookieBanner";
|
||||
import CRMError from "../../components/crmError";
|
||||
@@ -21,7 +21,7 @@ import TimeOut from "../../components/timeout";
|
||||
import {
|
||||
setAccountDetails,
|
||||
setContainerID,
|
||||
setLoggedInUserId,
|
||||
setLoggedInUserId
|
||||
} from "../../store/accountDetails/action";
|
||||
import { setAppealType, setProjectType } from "../../store/appealType/action";
|
||||
import { setLPA } from "../../store/lpa/action";
|
||||
@@ -91,8 +91,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
return {
|
||||
redirect: {
|
||||
destination: "/auth/signin",
|
||||
permanent: false,
|
||||
},
|
||||
permanent: false
|
||||
}
|
||||
};
|
||||
} else {
|
||||
const [accountDetails, appealTypeData, lpaData, projectTypeData] =
|
||||
@@ -100,7 +100,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
await getPersonalAccount(loggedInUser),
|
||||
await getAppealsTypes(),
|
||||
await getLPA(),
|
||||
await getProjectTypes(),
|
||||
await getProjectTypes()
|
||||
]);
|
||||
|
||||
//const lpaData = require("../../data/lpa.json");
|
||||
@@ -117,8 +117,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
}
|
||||
return {
|
||||
props: {
|
||||
showLoginCheck: showLoginCheck,
|
||||
},
|
||||
showLoginCheck: showLoginCheck
|
||||
}
|
||||
};
|
||||
}
|
||||
);
|
||||
@@ -132,7 +132,7 @@ const mapStateToProps = (state) => {
|
||||
appealType: state.appealType,
|
||||
LPAData: state.LPAData,
|
||||
form: state.form,
|
||||
accountDetails: state.accountDetails,
|
||||
accountDetails: state.accountDetails
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user