client/src/reducers/notes-reducer.js
changeset 3 3b5d37d84cfe
parent 2 b52921a63e77
child 4 885a20cde527
--- a/client/src/reducers/notes-reducer.js	Mon May 22 17:59:19 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-import * as types from '../actions/action-types';
-import Immutable from 'immutable';
-
-const noteRecord = Immutable.Record({id:'', text: ''});
-
-export default (state = Immutable.List([]), action) => {
-  switch (action.type) {
-    case types.ADD_NOTE:
-      return state.push(new noteRecord(action.note));
-    default:
-      return state;
-  }
-};