Initial commit

This commit is contained in:
Maksim Eltyshev
2019-08-31 04:07:25 +05:00
commit 36fe34e8e1
583 changed files with 91539 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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;
}
};