@@ -39,25 +39,25 @@ export default (store) => {
39
39
return (
40
40
< Route path = "/" component = { App } onEnter = { shouldAuth } >
41
41
< IndexRoute components = { Home } />
42
- < Route path = "/donations" getComponent = { ( nextState , cb ) => System . import ( './containers/Donations' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
43
- < Route path = "/contributions" getComponent = { ( nextState , cb ) => System . import ( './containers/Donations' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
42
+ < Route path = "/donations" getComponent = { ( nextState , cb ) => import ( './containers/Donations' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
43
+ < Route path = "/contributions" getComponent = { ( nextState , cb ) => import ( './containers/Donations' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
44
44
45
- < Route path = "/about" getComponent = { ( nextState , cb ) => System . import ( './containers/About' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
45
+ < Route path = "/about" getComponent = { ( nextState , cb ) => import ( './containers/About' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
46
46
47
- < Route path = "/contact" getComponent = { ( nextState , cb ) => System . import ( './containers/Contact' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
48
- < Route path = "/contactus" getComponent = { ( nextState , cb ) => System . import ( './containers/Contact' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
47
+ < Route path = "/contact" getComponent = { ( nextState , cb ) => import ( './containers/Contact' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
48
+ < Route path = "/contactus" getComponent = { ( nextState , cb ) => import ( './containers/Contact' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
49
49
50
- < Route path = "/mobile" getComponent = { ( nextState , cb ) => System . import ( './containers/MobileLanding' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
51
- < Route path = "/apps" getComponent = { ( nextState , cb ) => System . import ( './containers/MobileLanding' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
50
+ < Route path = "/mobile" getComponent = { ( nextState , cb ) => import ( './containers/MobileLanding' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
51
+ < Route path = "/apps" getComponent = { ( nextState , cb ) => import ( './containers/MobileLanding' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
52
52
53
- < Route path = "/error/:errorKey" getComponent = { ( nextState , cb ) => System . import ( './containers/Error' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
53
+ < Route path = "/error/:errorKey" getComponent = { ( nextState , cb ) => import ( './containers/Error' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
54
54
55
- < Route path = "/search" getComponent = { ( nextState , cb ) => System . import ( './containers/Search' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
55
+ < Route path = "/search" getComponent = { ( nextState , cb ) => import ( './containers/Search' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
56
56
57
- < Route path = "/login" getComponent = { ( nextState , cb ) => System . import ( './containers/Login' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
57
+ < Route path = "/login" getComponent = { ( nextState , cb ) => import ( './containers/Login' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
58
58
59
59
< Route onEnter = { requireLogin } >
60
- < Route path = "/profile" getComponent = { ( nextState , cb ) => System . import ( './containers/Profile' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
60
+ < Route path = "/profile" getComponent = { ( nextState , cb ) => import ( './containers/Profile' ) . then ( module => cb ( null , module . default ) ) . catch ( err => console . trace ( err ) ) } />
61
61
</ Route >
62
62
63
63
< Redirect from = "/:chapterId:(:range)" to = "/:chapterId(/:range)" />
@@ -66,9 +66,9 @@ export default (store) => {
66
66
path = "/:chapterId(/:range)"
67
67
getComponents = { ( nextState , cb ) =>
68
68
Promise . all ( [
69
- System . import ( './containers/Surah' ) ,
70
- System . import ( './components/GlobalNav/Surah' ) ,
71
- System . import ( './components/GlobalSidebar/Surah' ) ,
69
+ import ( './containers/Surah' ) ,
70
+ import ( './components/GlobalNav/Surah' ) ,
71
+ import ( './components/GlobalSidebar/Surah' ) ,
72
72
] )
73
73
. then ( modules => cb (
74
74
null ,
0 commit comments