refactor phase 3a myportal advanced and address search imports

This commit is contained in:
2026-03-12 09:20:33 +00:00
parent cbcb9549be
commit 562cffdc59
2 changed files with 29 additions and 29 deletions
+11 -11
View File
@@ -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
};
};