diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-06-22 10:30:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 10:30:01 -0400 |
commit | 14510ce19470c176a7f286d4a3238e813f7dc959 (patch) | |
tree | 3aeb058bd9fc0395a040785c876a2762e523df96 /webapp/routes/route_create_team.jsx | |
parent | 00dc8e734c5af9e2a7de778b60a2eeaa0e1be269 (diff) | |
download | chat-14510ce19470c176a7f286d4a3238e813f7dc959.tar.gz chat-14510ce19470c176a7f286d4a3238e813f7dc959.tar.bz2 chat-14510ce19470c176a7f286d4a3238e813f7dc959.zip |
Adding webpack code splitting (#3377)
Diffstat (limited to 'webapp/routes/route_create_team.jsx')
-rw-r--r-- | webapp/routes/route_create_team.jsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/webapp/routes/route_create_team.jsx b/webapp/routes/route_create_team.jsx new file mode 100644 index 000000000..354d7a39c --- /dev/null +++ b/webapp/routes/route_create_team.jsx @@ -0,0 +1,25 @@ +import * as RouteUtils from 'routes/route_utils.jsx'; + +export default { + path: 'create_team', + getComponents: (location, callback) => { + System.import('components/create_team/create_team_controller.jsx').then(RouteUtils.importComponentSuccess(callback)); + }, + indexRoute: {onEnter: (nextState, replace) => replace('/create_team/display_name')}, + getChildRoutes: RouteUtils.createGetChildComponentsFunction( + [ + { + path: 'display_name', + getComponents: (location, callback) => { + System.import('components/create_team/components/display_name.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + }, + { + path: 'team_url', + getComponents: (location, callback) => { + System.import('components/create_team/components/team_url.jsx').then(RouteUtils.importComponentSuccess(callback)); + } + } + ] + ) +}; |