client/src/actions/notesActions.js
author ymh <ymh.work@gmail.com>
Wed, 31 May 2017 18:08:22 +0200
changeset 8 6f572b6b6be3
parent 3 3b5d37d84cfe
child 12 48ddaa42b810
permissions -rw-r--r--
try to make tests work again

import uuidV1 from 'uuid/v1';

import * as types from '../constants/actionTypes';

export const addNote = (noteText) => {
  return {
    type: types.ADD_NOTE,
    note: {
      id: uuidV1(),
      text: noteText
    }
  };
}