Removed proxy and added api calls, has gov gateway auth
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export const govGatweayActionTypes = {
|
||||
GETPROVIDERCONFIG: "GETPROVIDERCONFIG",
|
||||
};
|
||||
|
||||
export const getGovGatewayConfig = (config) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: govGatweayActionTypes.GETPROVIDERCONFIG,
|
||||
config: config,
|
||||
});
|
||||
};
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user