summaryrefslogtreecommitdiff
path: root/client/actions/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-04 04:14:03 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-04 04:14:03 +0200
commitd520c67839724e80d8b68b8fe933f1e7755a8f42 (patch)
tree51188a9a3b7a125d1e79c899ba7058a280bcde50 /client/actions/index.js
parent2263f412817d6d2d36372e7617feb0d97fa57af8 (diff)
writing task form in a reduxy way
Diffstat (limited to 'client/actions/index.js')
-rw-r--r--client/actions/index.js22
1 files changed, 22 insertions, 0 deletions
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',
+})