console log tidying
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
export const govGatweayActionTypes = {
|
||||
GETPROVIDERCONFIG: "GETPROVIDERCONFIG",
|
||||
};
|
||||
|
||||
export const getGovGatewayConfig = (config) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: govGatweayActionTypes.GETPROVIDERCONFIG,
|
||||
config: config,
|
||||
});
|
||||
};
|
||||
@@ -1,17 +0,0 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user