mirror of
https://github.com/plankanban/planka.git
synced 2025-12-27 01:11:50 +03:00
18 lines
334 B
JavaScript
18 lines
334 B
JavaScript
|
|
import ActionTypes from '../constants/ActionTypes';
|
||
|
|
|
||
|
|
const initialState = {
|
||
|
|
status: null,
|
||
|
|
};
|
||
|
|
|
||
|
|
export default (state = initialState, { type, payload }) => {
|
||
|
|
switch (type) {
|
||
|
|
case ActionTypes.SOCKET_STATUS_CHANGED:
|
||
|
|
return {
|
||
|
|
...state,
|
||
|
|
status: payload.status,
|
||
|
|
};
|
||
|
|
default:
|
||
|
|
return state;
|
||
|
|
}
|
||
|
|
};
|