initial commit for welsh government planning appeals application

This commit is contained in:
2021-07-26 16:53:32 +01:00
parent 58f468c275
commit f0f15b4f6e
163 changed files with 15097 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { actionTypes } from "redux-form";
export const LPADataActionTypes = {
GETLPADATA: "GETLPADATA",
SETLPADATA: "SETLPADATA",
};
export const getLPAObj = () => (dispatch) => {
return dispatch({
type: LPADataActionTypes.GETLPADATA,
});
};
export const setLPA = (lpaData) => (dispatch) => {
return dispatch({
type: LPADataActionTypes.SETLPADATA,
LPAData: lpaData,
});
};
+17
View File
@@ -0,0 +1,17 @@
import { LPADataActionTypes } from "./action";
const LPADataInitialState = {
LPAData: {},
};
export default function reducer(state = LPADataInitialState, action) {
switch (action.type) {
case LPADataActionTypes.SETLPADATA:
return {
...state,
LPAData: action.LPAData,
};
default:
return state;
}
}