Artifact Content
Not logged in

Artifact 4f44bfaf687bbf9a3c5ce29adf9bcd36c04aa9ce:


import * as types from '../actionTypes'

const initialState = {
  list: []
}

export default function reducer (state = initialState, action = {}) {
  switch (action.type) {
    case types.LOAD_STATS_SUCCESS:
      return {
        ...state,
        list: action.result
      }
    default:
      return state
  }
}