From 3550faf051b069d7b71193daafc3e20d4777e977 Mon Sep 17 00:00:00 2001 From: robbond Date: Thu, 12 Mar 2026 09:34:16 +0000 Subject: [PATCH] refactor phase 3a pages-account targeted actions imports --- pages/account/changepassword.js | 9 ++++++--- pages/account/personaldetails.js | 8 ++++---- pages/account/register.js | 3 ++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/pages/account/changepassword.js b/pages/account/changepassword.js index 0fe8c7a0..92b19237 100644 --- a/pages/account/changepassword.js +++ b/pages/account/changepassword.js @@ -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 }; }; diff --git a/pages/account/personaldetails.js b/pages/account/personaldetails.js index 8ff9c011..f185dee0 100644 --- a/pages/account/personaldetails.js +++ b/pages/account/personaldetails.js @@ -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 }; }; diff --git a/pages/account/register.js b/pages/account/register.js index 74470b6c..7b67e274 100644 --- a/pages/account/register.js +++ b/pages/account/register.js @@ -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) => {