Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/reducers/users.js

Summary

Maintainability
A
0 mins
Test Coverage
import actionTypes from 'actions/actionTypes';

const initialState = [];

const usersReducer = (state = initialState, action) => {
  switch (action.type) {
    case actionTypes.RECEIVE_USERS:
      return action.data;
    default:
      return state;
  }
};

export default usersReducer;