client/src/actions/notes-actions.js
changeset 3 3b5d37d84cfe
parent 2 b52921a63e77
child 4 885a20cde527
equal deleted inserted replaced
2:b52921a63e77 3:3b5d37d84cfe
     1 import * as types from './action-types';
       
     2 
       
     3 import uuidV1 from 'uuid/v1';
       
     4 
       
     5 export const addNote = (noteText) => {
       
     6   return {
       
     7     type: types.ADD_NOTE,
       
     8     note: {
       
     9       id: uuidV1(),
       
    10       text: noteText
       
    11     }
       
    12   };
       
    13 }