Guest User

Untitled

a guest
Feb 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import Immutable from 'immutable'
  2. const objectAssign = require('object-assign');
  3. const initialUserState =
  4. {
  5.  
  6. }
  7. ;
  8. const BackupReducer = function(state = initialUserState, action) {
  9. //console.log('actiondata in reducer:' + action.data + action.type);
  10.  
  11. switch(action.type) {
  12.  
  13. case 'GET_BACK_LIST':
  14. return objectAssign({}, state, { backups: action.data });
  15. break;
Add Comment
Please, Sign In to add comment