just-paja/improtresk-web

View on GitHub
src/participants/reducers/teams.js

Summary

Maintainability
A
0 mins
Test Coverage
import {
  combine,
  fetchStart,
  fetchError,
  fetchSuccess
} from 'react-saga-rest'

import * as constants from '../constants'

const defaultState = {
  data: [],
  loading: false
}

export default combine(defaultState, {
  [constants.TEAMS_FETCH_STARTED]: fetchStart,
  [constants.TEAMS_FETCH_SUCCESS]: fetchSuccess,
  [constants.TEAMS_FETCH_ERROR]: fetchError
})