refactor phase 3a pages-newappeal-and-case targeted actions imports
This commit is contained in:
@@ -7,9 +7,9 @@ import { useRouter } from "next/router";
|
||||
import { connect } from "react-redux";
|
||||
import {
|
||||
getAppealsTypesForNewAppeal,
|
||||
getLPA,
|
||||
getPersonalAccount,
|
||||
} from "../../actions";
|
||||
getLPA
|
||||
} from "../../actions/services/referenceDataService";
|
||||
import { getPersonalAccount } from "../../actions/services/accountService";
|
||||
import Breadcrumbs from "../../components/breadcrumbs";
|
||||
import CookieBanner from "../../components/cookieBanner";
|
||||
import Footer from "../../components/footer";
|
||||
@@ -18,7 +18,7 @@ import CreateCase from "../../components/newappeal/createCase";
|
||||
import {
|
||||
setAccountDetails,
|
||||
setContainerID,
|
||||
setLoggedInUserId,
|
||||
setLoggedInUserId
|
||||
} from "../../store/accountDetails/action";
|
||||
import { setAppealType } from "../../store/appealType/action";
|
||||
import { setLPA } from "../../store/lpa/action";
|
||||
@@ -162,8 +162,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
return {
|
||||
redirect: {
|
||||
destination: "/auth/signin",
|
||||
permanent: false,
|
||||
},
|
||||
permanent: false
|
||||
}
|
||||
};
|
||||
} else {
|
||||
let loggedInUserIdent = thisSession.user.id;
|
||||
@@ -175,7 +175,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
[
|
||||
await getAppealsTypesForNewAppeal(),
|
||||
await getLPA(),
|
||||
await getPersonalAccount(loggedInUser),
|
||||
await getPersonalAccount(loggedInUser)
|
||||
]
|
||||
);
|
||||
|
||||
@@ -195,7 +195,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
store.dispatch(setContainerID(thisSession.user.id));
|
||||
|
||||
return {
|
||||
props: { loggedInUserIdent: loggedInUserIdent },
|
||||
props: { loggedInUserIdent: loggedInUserIdent }
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -209,7 +209,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