Added tech routing paths and basic structure of landing page + sign in + reducers BOD-95

This commit is contained in:
Patrick Fic
2020-06-29 13:39:17 -07:00
parent 0009f7d3bb
commit 2edfadce3a
24 changed files with 662 additions and 24 deletions

View File

@@ -0,0 +1,25 @@
import TechActionTypes from "./tech.types";
const INITIAL_STATE = {
technician: null,
loginError: null,
};
const applicationReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case TechActionTypes.LOGIN_SUCCESS:
return {
...state,
technician: action.payload,
};
case TechActionTypes.LOGIN_FAILURE:
return {
...state,
loginError: action.payload,
};
default:
return state;
}
};
export default applicationReducer;