verdnatura-chat/app/reducers/activeUsers.js

16 lines
268 B
JavaScript
Raw Normal View History

import * as types from '../actions/actionsTypes';
const initialState = {};
export default (state = initialState, action) => {
switch (action.type) {
case types.ACTIVE_USERS.SET:
return {
...state,
...action.data
};
default:
return state;
}
};