From 64e8c03dea044752bf3f2f228462721fe565f950 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 19 Jul 2017 00:50:05 +0200 Subject: refactor all the worker stuff --- client/actions/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/actions/index.js') 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 */ -- cgit v1.2.3-70-g09d2