Skip to content

Commit d9e530d

Browse files
committed
Update to use demo as home page
1 parent ddf16ae commit d9e530d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/routes/Demo/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { injectMultipleSagas } from '../../store/sagas';
44
import { fetchAllDemos } from './modules/demo';
55

66
export default (store) => ({
7-
path : 'demo',
87
/* Async getComponent is only invoked when route matches */
98
getComponent (nextState, cb) {
109
/* Webpack - use 'require.ensure' to create a split point

src/routes/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ import UserRoute from './User';
88
export const createRoutes = (store) => ({
99
path : '/',
1010
component : CoreLayout,
11-
onEnter : (nextState, replace) => {
12-
if (nextState.location.pathname === '/') {
13-
return replace('/demo');
14-
}
15-
},
16-
indexRoute : Home,
11+
indexRoute : DemoRoute(store),
1712
childRoutes : [
1813
DemoRoute(store),
1914
LoginRoute(store),

0 commit comments

Comments
 (0)