summaryrefslogtreecommitdiff
path: root/client/reducers/tasks.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-07 21:18:33 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-07 21:18:33 +0200
commitf8b61281be84a6e4e7a44be5109e688a7c56c671 (patch)
tree43797c6b6cfa5c0f89c020f8c89e0da10f791a55 /client/reducers/tasks.js
parent3d3a7b80d34c100846c8ae130b424b63ba3c0784 (diff)
refactor files so list updates while processing
Diffstat (limited to 'client/reducers/tasks.js')
-rw-r--r--client/reducers/tasks.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/reducers/tasks.js b/client/reducers/tasks.js
new file mode 100644
index 0000000..d6ef8e1
--- /dev/null
+++ b/client/reducers/tasks.js
@@ -0,0 +1,13 @@
+// import { addTask } from '../actions'
+import client from '../client'
+
+const tasks = (state = {}, action) => {
+ switch (action.type) {
+ case 'LOAD_TASKS':
+ return action.tasks
+ default:
+ return state
+ }
+}
+
+export default tasks \ No newline at end of file