refactor phase 3a pages-account targeted actions imports

This commit is contained in:
2026-03-12 09:34:16 +00:00
parent 72e4655188
commit 3550faf051
3 changed files with 12 additions and 8 deletions
+6 -3
View File
@@ -23,9 +23,12 @@ import {
setAppealTypeTitle,
setAppealTypeID,
setAppealLPA,
getAppealTypeObj,
getAppealTypeObj
} from "../../store/appealType/action";
import { getAppealsTypes, getLPA } from "../../actions";
import {
getAppealsTypes,
getLPA
} from "../../actions/services/referenceDataService";
import { setLPA } from "../../store/lpa/action";
import { getSession, useSession } from "next-auth/react";
@@ -110,7 +113,7 @@ const mapStateToProps = (state) => {
appealType: state.appealType,
LPAData: state.LPAData,
form: state.form,
accountDetails: state.accountDetails,
accountDetails: state.accountDetails
};
};
+4 -4
View File
@@ -19,7 +19,7 @@ import { reduxForm, formValueSelector } from "redux-form";
import PersonalDetails from "../../components/account/personaldetails";
import { setAccountDetails } from "../../store/accountDetails/action";
import { getPersonalAccount } from "../../actions";
import { getPersonalAccount } from "../../actions/services/accountService";
import { setCookie } from "nookies";
import { getSession, useSession } from "next-auth/react";
import NoSessionWarning from "../../components/nosession";
@@ -36,8 +36,8 @@ const Home = (props) => {
useState(false);
const [accountUpdatedComplete, setAccountUpdatedComplete] = useState(false);
setCookie(null, "pinsUser", props.accountDetails.loggedinUserId),
{ path: "/" };
(setCookie(null, "pinsUser", props.accountDetails.loggedinUserId),
{ path: "/" });
const { data: session, status } = useSession();
@@ -133,7 +133,7 @@ const mapStateToProps = (state) => {
appealType: state.appealType,
LPAData: state.LPAData,
form: state.form,
accountDetails: state.accountDetails,
accountDetails: state.accountDetails
};
};
+2 -1
View File
@@ -17,7 +17,8 @@ import { JSONPath as jsonpath } from "jsonpath-plus";
import { reduxForm, formValueSelector } from "redux-form";
import RegisterForm from "../../components/account/registerform";
import { dehashString, hashAPIPath, getIP } from "../../actions";
import { dehashString, hashAPIPath } from "../../actions/core/hash";
import { getIP } from "../../actions/core/logger";
import { getSession, useSession, signIn, signOut } from "next-auth/react";
const Home = (props) => {