summaryrefslogtreecommitdiff
path: root/client/reducers/tasks.js
diff options
context:
space:
mode:
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