generator-thundr-gae-react
Version:
Yeoman generator for a React app that runs atop Thundr on Google App Engine
27 lines (21 loc) • 627 B
JavaScript
import { combineReducers } from 'redux';
import { reducer as form } from 'redux-form';
import { routerReducer as routing } from 'react-router-redux';
import auth, * as fromAuth from './auth';
import drawer, * as fromDrawer from './drawer';
/**
* Root reducer for the app.
*/
const rootReducer = combineReducers({
form,
routing,
auth,
drawer,
});
export const getLoggedInUser = state =>
fromAuth.getUser(state.auth);
export const getIsAuthenticated = state =>
fromAuth.getIsAuthenticated(state.auth);
export const getOpenDrawer = state =>
fromDrawer.getOpenDrawer(state.drawer);
export default rootReducer;