import { combineReducers } from 'redux';
import errorReducer from './errorReducer';
import userGroupsReducer from './userGroupsReducer';
import userReducer from './userReducer';
import postItInfoReducer from './postItInfoReducer';
import loadingReducer from './loading';
import authStateReducer from './authStateReducer';

const postItApp = combineReducers({
  groups: userGroupsReducer,
  apiError: errorReducer,
  dataLoading: loadingReducer,
  appInfo: combineReducers({
    userDetails: userReducer,
    authState: authStateReducer
  }),
  postItInfo: postItInfoReducer
});

export default postItApp;

@@ -314,16 +314,128 @@
 educer';
+%0Aimport allUserGroupsReducer from './allUserGroupsReducer';%0Aimport loadedChatReducer from './loadedChatReducer';
 %0A%0Aconst 
@@ -489,24 +489,63 @@
 upsReducer,%0A
+  allUserGroups: allUserGroupsReducer,%0A
   apiError: 
@@ -648,16 +648,16 @@
 educer,%0A
-
     auth
@@ -679,16 +679,51 @@
 eReducer
+,%0A    loadedChat: loadedChatReducer
 %0A  %7D),%0A 

add reducer to handle chat meta