Feat: Welcome Page (#17150)

This commit is contained in:
Stuart Taylor
2018-05-15 06:12:05 +01:00
committed by mrugesh mohapatra
parent 47bb4ca5e3
commit 156ea1af76
172 changed files with 693 additions and 9738 deletions

View File

@@ -1,11 +1,8 @@
import { isLocationAction } from 'redux-first-router';
import { combineReducers } from 'berkeleys-redux-utils';
import challengeReducer from './Challenges/redux';
import profileReducer from './Profile/redux';
import settingsReducer from './Settings/redux';
import { routes as challengeRoutes } from './Challenges';
import { routes as profileRoutes } from './Profile';
import { routes as settingsRoutes } from './Settings';
@@ -18,9 +15,6 @@ export function mainRouter(state = 'NotFound', action) {
return state;
}
const { type } = action;
if (challengeRoutes[type]) {
return 'challenges';
}
if (settingsRoutes[type]) {
return 'settings';
}
@@ -33,7 +27,6 @@ export function mainRouter(state = 'NotFound', action) {
mainRouter.toString = () => ns;
export default combineReducers(
challengeReducer,
profileReducer,
settingsReducer,
mainRouter