removed gov gateway references

This commit is contained in:
2022-10-18 11:51:30 +01:00
parent 5f7908c0c2
commit 8c5b299412
17 changed files with 87 additions and 191 deletions
+2 -6
View File
@@ -27,8 +27,6 @@ import {
setWatchedCasesDetails,
} from "../../store/watchedCases/action";
import TimeOut from "../../components/timeout";
import { getGovGatewayConfig } from "../../store/govgateway/action";
import { getProviderConfig } from "../../actions/govgateway";
const Home = (props) => {
const { footerLinks, pages, watchedCases } = props;
@@ -60,7 +58,7 @@ const Home = (props) => {
</div>
<Footer footerLinks={footerLinks} />
</div>
<TimeOut ggLogout={props.govGateway.config.end_session_endpoint} />
<TimeOut />
</div>
);
};
@@ -83,8 +81,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
await getSearchDetails(searchResultsObj),
await getDetails(watchedCases, "myWatchedCases"),
]);
const providerConfig = await getProviderConfig();
store.dispatch(getGovGatewayConfig(providerConfig));
store.dispatch(setSearchResults(searchResultsObj));
store.dispatch(setSearchDetails(searchDetailsObj));
store.dispatch(setWatchedCases(watchedCases));
@@ -136,7 +133,6 @@ const mapStateToProps = (state) => {
watchedCases: state.watchedCases,
myRepresentations: state.myRepresentations,
awaitingSubmission: state.awaitingSubmission,
govGateway: state.govGateway,
};
};