Removed proxy and added api calls, has gov gateway auth

This commit is contained in:
2022-01-20 10:56:26 +00:00
parent 6f37064eba
commit 5a536e158c
127 changed files with 5829 additions and 3097 deletions
+10
View File
@@ -0,0 +1,10 @@
export const govGatweayActionTypes = {
GETPROVIDERCONFIG: "GETPROVIDERCONFIG",
};
export const getGovGatewayConfig = (config) => (dispatch) => {
return dispatch({
type: govGatweayActionTypes.GETPROVIDERCONFIG,
config: config,
});
};
+17
View File
@@ -0,0 +1,17 @@
import { govGatweayActionTypes } from "./action";
const govGatewayConfigInitialState = {
config: {},
};
export default function reducer(state = govGatewayConfigInitialState, action) {
switch (action.type) {
case govGatweayActionTypes.GETPROVIDERCONFIG:
return {
...state,
config: action.config,
};
default:
return state;
}
}
+3
View File
@@ -17,6 +17,7 @@ import awaitingSubmission from "./awaitingSubmission/reducer";
import myCases from "./myCases/reducer";
import myRepresentations from "./myRepresentations/reducer";
import watchedCases from "./watchedCases/reducer";
import govGateway from "./govgateway/reducer";
//COMBINING ALL REDUCERS
const appReducer = combineReducers({
@@ -31,6 +32,7 @@ const appReducer = combineReducers({
myCases,
myRepresentations,
watchedCases,
govGateway,
form: formReducer,
});
@@ -117,6 +119,7 @@ const makeStore = ({ isServer }) => {
"myCases",
"myRepresentations",
"watchedCases",
"govGateway",
"form",
],
version: 1,