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,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 }
// ]
// };
// }