| author | ymh <ymh.work@gmail.com> |
| Wed, 21 Jun 2017 08:45:29 +0200 | |
| changeset 70 | dff58e6bea47 |
| parent 66 | f402435be429 |
| child 79 | 772b73e31069 |
| permissions | -rw-r--r-- |
import Immutable from 'immutable'; import * as types from '../constants/actionTypes'; import NoteRecord from '../store/noteRecord'; export default (state = Immutable.List([]), action) => { switch (action.type) { case types.ADD_NOTE: return state.push(new NoteRecord(action.note)); default: return state; } };