27 lines
744 B
JavaScript
Executable File
27 lines
744 B
JavaScript
Executable File
import { combineReducers } from 'redux';
|
|
import { userAccount } from '@edx/frontend-auth';
|
|
import { connectRouter } from 'connected-react-router';
|
|
|
|
import {
|
|
reducer as accountSettingsReducer,
|
|
storeName as accountSettingsStoreName,
|
|
} from './account-settings';
|
|
|
|
const identityReducer = (state) => {
|
|
const newState = { ...state };
|
|
return newState;
|
|
};
|
|
|
|
const createRootReducer = history =>
|
|
combineReducers({
|
|
// The authentication state is added as initialState when
|
|
// creating the store in data/store.js.
|
|
authentication: identityReducer,
|
|
configuration: identityReducer,
|
|
userAccount,
|
|
[accountSettingsStoreName]: accountSettingsReducer,
|
|
router: connectRouter(history),
|
|
});
|
|
|
|
export default createRootReducer;
|