16 lines
268 B
JavaScript
16 lines
268 B
JavaScript
|
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;
|
||
|
}
|
||
|
};
|