equal
deleted
inserted
replaced
|
1 import uuidV1 from 'uuid/v1'; |
|
2 |
|
3 import * as types from '../constants/actionTypes'; |
|
4 |
|
5 export const addNote = (noteText) => { |
|
6 return { |
|
7 type: types.ADD_NOTE, |
|
8 note: { |
|
9 id: uuidV1(), |
|
10 text: noteText |
|
11 } |
|
12 }; |
|
13 } |