chore(refactor): remove stale legacy actions import comments

This commit is contained in:
2026-03-12 17:41:36 +00:00
parent fa985351ff
commit bef8f2590b
3 changed files with 4 additions and 23 deletions
-1
View File
@@ -23,7 +23,6 @@
// import axios from "axios"; // import axios from "axios";
// import CryptoJS from "crypto-js"; // import CryptoJS from "crypto-js";
// import { getToken, consoleLogger } from "../../../../actions";
// const WORDKEY = process.env.HASHKEY; // const WORDKEY = process.env.HASHKEY;
// const accessTokenEndpoint = process.env.ACCESS_TOKEN_ENDPOINT; // const accessTokenEndpoint = process.env.ACCESS_TOKEN_ENDPOINT;
+4 -14
View File
@@ -6,16 +6,6 @@
// import { useEffect } from "react"; // import { useEffect } from "react";
// import { connect } from "react-redux"; // import { connect } from "react-redux";
// import xpath from "xpath"; // import xpath from "xpath";
// import {
// getAppealsTypesForNewAppeal,
// getAwaitingSubmissionFromBlob,
// getFilesFromBlob,
// getIP,
// getMandatoryFields,
// getPickLists,
// getProgressFromBlob,
// getPersonalAccount,
// } from "../../actions";
// import Breadcrumbs from "../../components/breadcrumbs"; // import Breadcrumbs from "../../components/breadcrumbs";
// import CookieBanner from "../../components/cookieBanner"; // import CookieBanner from "../../components/cookieBanner";
// import Footer from "../../components/footer"; // import Footer from "../../components/footer";
@@ -414,7 +404,7 @@ let Home = (props) => {
const selectedObj = jsonpath({ const selectedObj = jsonpath({
path: "$..[?(@ && @.attributevalue=='" + apt + "')]", path: "$..[?(@ && @.attributevalue=='" + apt + "')]",
json: optionsStr, json: optionsStr,
eval: true, eval: true
}); });
return selectedObj?.[0]?.value || "New appeal"; return selectedObj?.[0]?.value || "New appeal";
@@ -458,8 +448,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
return { return {
props: { props: {
url: process.env.NEXTAUTH_URL, url: process.env.NEXTAUTH_URL,
docsOffline: process.env.DOCAPI_OFFLINE || false, docsOffline: process.env.DOCAPI_OFFLINE || false
}, }
}; };
} }
); );
@@ -474,7 +464,7 @@ const mapStateToProps = (state) => {
accountDetails: state.accountDetails, accountDetails: state.accountDetails,
awaitingSubmission: state.awaitingSubmission, awaitingSubmission: state.awaitingSubmission,
currentView: state.currentView, currentView: state.currentView,
initialValues: state.appealType.caseReference?.caseDetails, initialValues: state.appealType.caseReference?.caseDetails
}; };
}; };
-8
View File
@@ -6,14 +6,6 @@
// import { useEffect } from "react"; // import { useEffect } from "react";
// import { connect } from "react-redux"; // import { connect } from "react-redux";
// import xpath from "xpath"; // import xpath from "xpath";
// import {
// getAppealsTypesForNewAppeal,
// getIP,
// getMandatoryFields,
// getPickLists,
// getProgressFromBlob,
// getPersonalAccount,
// } from "../../actions";
// import Breadcrumbs from "../../components/breadcrumbs"; // import Breadcrumbs from "../../components/breadcrumbs";
// import CookieBanner from "../../components/cookieBanner"; // import CookieBanner from "../../components/cookieBanner";
// import Footer from "../../components/footer"; // import Footer from "../../components/footer";