summaryrefslogtreecommitdiff
path: root/client/reducers/tasks.js
blob: d6ef8e15ed1cc197b4280b1e11742afc4731ee2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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