refactor phase 3a top-level pages targeted actions imports
This commit is contained in:
@@ -3,7 +3,11 @@ import useTranslation from "next-translate/useTranslation";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import { connect } from "react-redux";
|
||||
import { getAppealsTypes, getProjectTypes, getLPA } from "../actions";
|
||||
import {
|
||||
getAppealsTypes,
|
||||
getProjectTypes,
|
||||
getLPA
|
||||
} from "../actions/services/referenceDataService";
|
||||
import Breadcrumbs from "../components/breadcrumbs";
|
||||
import CookieBanner from "../components/cookieBanner";
|
||||
import CRMError from "../components/crmError";
|
||||
@@ -126,7 +130,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
let [appealTypeData, projectTypeData, lpaData] = await Promise.all([
|
||||
await getAppealsTypes(),
|
||||
await getProjectTypes(),
|
||||
await getLPA(),
|
||||
await getLPA()
|
||||
]);
|
||||
|
||||
//const lpaData = require("../data/lpa.json");
|
||||
@@ -146,7 +150,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