refactor phase 3a top-level pages targeted actions imports

This commit is contained in:
2026-03-12 09:49:40 +00:00
parent eebcfffd5e
commit c33cdf1b28
8 changed files with 74 additions and 57 deletions
+7 -3
View File
@@ -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
};
};