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
+5 -5
View File
@@ -2,7 +2,7 @@ import useTranslation from "next-translate/useTranslation";
import Head from "next/head";
import { useRouter } from "next/router";
import { connect } from "react-redux";
import { getAdvancedSearch } from "../actions";
import { getAdvancedSearch } from "../actions/services/searchService";
import Breadcrumbs from "../components/breadcrumbs";
import CookieBanner from "../components/cookieBanner";
import Footer from "../components/footer";
@@ -13,7 +13,7 @@ import { setShowReps } from "../store/currentView/action";
import { setSearch } from "../store/search/action";
import {
setSearchDetails,
setSearchResults,
setSearchResults
} from "../store/searchOutput/action";
import ServiceBanner from "../components/servicebanner";
import { wrapper } from "../store/store";
@@ -140,8 +140,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
store.dispatch(setSearch(Object.entries(query)));
return {
props: {
showLoginCheck: showLoginCheck,
},
showLoginCheck: showLoginCheck
}
};
}
);
@@ -157,7 +157,7 @@ const mapStateToProps = (state) => {
myCases: state.myCases,
watchedCases: state.watchedCases,
myRepresentations: state.myRepresentations,
awaitingSubmission: state.awaitingSubmission,
awaitingSubmission: state.awaitingSubmission
};
};