From f8b61281be84a6e4e7a44be5109e688a7c56c671 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 7 Jul 2017 21:18:33 +0200 Subject: refactor files so list updates while processing --- client/reducers/tasks.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/reducers/tasks.js (limited to 'client/reducers/tasks.js') 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 -- cgit v1.2.3-70-g09d2