From d520c67839724e80d8b68b8fe933f1e7755a8f42 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 4 Jul 2017 04:14:03 +0200 Subject: writing task form in a reduxy way --- client/actions/index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/actions/index.js (limited to 'client/actions/index.js') diff --git a/client/actions/index.js b/client/actions/index.js new file mode 100644 index 0000000..ddbf9ee --- /dev/null +++ b/client/actions/index.js @@ -0,0 +1,22 @@ +export const setContent = (content) => ({ + type: 'SET_CONTENT', + file: content +}) + +export const setStyle = (style) => ({ + type: 'SET_STYLE', + file: style +}) + +export const setAlpha = (alpha) => ({ + type: 'SET_ALPHA', + alpha, +}) + +export const createTask = () => ({ + type: 'CREATE_TASK', +}) + +export const addTask = () => ({ + type: 'ADD_TASK', +}) -- cgit v1.2.3-70-g09d2