diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-05-16 07:18:49 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-05-19 02:35:13 +0800 |
commit | 317ff817445c20a64b5978dae1210a515c248f4f (patch) | |
tree | 0b7e8fd4793ee12fc8bc352b416d1575e5328d56 /packages/website/ts/index.tsx | |
parent | bd7fc780cb8003a0b110615ff3c357ca9a426bd0 (diff) | |
download | dexon-sol-tools-317ff817445c20a64b5978dae1210a515c248f4f.tar dexon-sol-tools-317ff817445c20a64b5978dae1210a515c248f4f.tar.gz dexon-sol-tools-317ff817445c20a64b5978dae1210a515c248f4f.tar.bz2 dexon-sol-tools-317ff817445c20a64b5978dae1210a515c248f4f.tar.lz dexon-sol-tools-317ff817445c20a64b5978dae1210a515c248f4f.tar.xz dexon-sol-tools-317ff817445c20a64b5978dae1210a515c248f4f.tar.zst dexon-sol-tools-317ff817445c20a64b5978dae1210a515c248f4f.zip |
Set up scaffolding for new drawer
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r-- | packages/website/ts/index.tsx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx index f255f81e7..7fc180449 100644 --- a/packages/website/ts/index.tsx +++ b/packages/website/ts/index.tsx @@ -34,14 +34,15 @@ import 'less/all.less'; // cause we only want to import the module when the user navigates to the page. // At the same time webpack statically parses for System.import() to determine bundle chunk split points // so each lazy import needs it's own `System.import()` declaration. -const LazyPortal = - utils.isDevelopment() || utils.isStaging() || utils.isDogfood() - ? createLazyComponent('Portal', async () => - System.import<any>(/* webpackChunkName: "portal" */ 'ts/containers/portal'), - ) - : createLazyComponent('LegacyPortal', async () => - System.import<any>(/* webpackChunkName: "legacyPortal" */ 'ts/containers/legacy_portal'), - ); + +// TODO: Remove this once we ship V2 +const LazyPortal = utils.shouldShowPortalV2() + ? createLazyComponent('Portal', async () => + System.import<any>(/* webpackChunkName: "portal" */ 'ts/containers/portal'), + ) + : createLazyComponent('LegacyPortal', async () => + System.import<any>(/* webpackChunkName: "legacyPortal" */ 'ts/containers/legacy_portal'), + ); const LazyZeroExJSDocumentation = createLazyComponent('Documentation', async () => System.import<any>(/* webpackChunkName: "zeroExDocs" */ 'ts/containers/zero_ex_js_documentation'), ); |