Feat: Welcome Page (#17150)
This commit is contained in:
committed by
mrugesh mohapatra
parent
47bb4ca5e3
commit
156ea1af76
@@ -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
|
||||
|
Reference in New Issue
Block a user