Feat: Welcome Page (#17150)
This commit is contained in:
committed by
mrugesh mohapatra
parent
47bb4ca5e3
commit
156ea1af76
@@ -1,35 +1,8 @@
|
||||
import { routes as challengesRoutes } from './Challenges';
|
||||
import { routes as mapRoutes } from './Map';
|
||||
import { routes as settingsRoutes } from './Settings';
|
||||
import { routes as profileRoutes } from './Profile';
|
||||
|
||||
// import { addLang } from '../utils/lang';
|
||||
|
||||
export { createPanesMap } from './Challenges';
|
||||
|
||||
export default {
|
||||
...challengesRoutes,
|
||||
...mapRoutes,
|
||||
...settingsRoutes,
|
||||
// ensure profile routes are last else they hijack other routes
|
||||
...profileRoutes
|
||||
};
|
||||
|
||||
// export default function createChildRoute(deps) {
|
||||
// return {
|
||||
// path: '/:lang',
|
||||
// indexRoute: {
|
||||
// onEnter(nextState, replace) {
|
||||
// const { lang } = nextState.params;
|
||||
// const { pathname } = nextState.location;
|
||||
// replace(addLang(pathname, lang));
|
||||
// }
|
||||
// },
|
||||
// childRoutes: [
|
||||
// ...challenges(deps),
|
||||
// ...map(deps),
|
||||
// ...settings(deps),
|
||||
// { path: '*', component: NotFound }
|
||||
// ]
|
||||
// };
|
||||
// }
|
||||
|
Reference in New Issue
Block a user