summaryrefslogtreecommitdiff
path: root/client/actions/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-19 00:50:05 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-19 00:50:05 +0200
commit64e8c03dea044752bf3f2f228462721fe565f950 (patch)
tree41b48b67f69979bfc97be166129ee41c8dcb0c7f /client/actions/index.js
parent11a70bc347587219b2ec7b63cf4a6ff69bb4199b (diff)
refactor all the worker stuff
Diffstat (limited to 'client/actions/index.js')
-rw-r--r--client/actions/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/actions/index.js b/client/actions/index.js
index afcd10a..5b180ea 100644
--- a/client/actions/index.js
+++ b/client/actions/index.js
@@ -25,8 +25,13 @@ export const setAlpha = (alpha) => ({
export const createTask = () => ({
type: 'CREATE_TASK',
})
-export const addTask = () => ({
+export const addTask = (task) => ({
type: 'ADD_TASK',
+ task,
+})
+export const taskUpdated = (task) => ({
+ type: 'TASK_UPDATED',
+ task,
})
/* tasks */