connecting to remote mysql db, saving market alerts
This commit is contained in:
10
frontend-react/src/reducers/userdata.js
Normal file
10
frontend-react/src/reducers/userdata.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { USER_DATA_CHANGED } from "constants/actionTypes";
|
||||
|
||||
export default (state = {}, action) => {
|
||||
switch (action.type) {
|
||||
case USER_DATA_CHANGED:
|
||||
return { ...state, [action.info]: action.value };
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user