aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/index.tsx
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-11-28 20:42:02 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-11-28 20:42:02 +0800
commit3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db (patch)
treec73bb48b8893dc3ceb04d3f4c56772f2f073317f /packages/website/ts/index.tsx
parent471a4e981a8893b7e61fb0978faaf79e11269269 (diff)
downloaddexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar
dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar.gz
dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar.bz2
dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar.lz
dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar.xz
dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar.zst
dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.zip
Adds initial /next route to index.tsx
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r--packages/website/ts/index.tsx17
1 files changed, 16 insertions, 1 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index faf7d8c87..062a3e08e 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -8,7 +8,7 @@ import { About } from 'ts/containers/about';
import { DocsHome } from 'ts/containers/docs_home';
import { FAQ } from 'ts/containers/faq';
import { Jobs } from 'ts/containers/jobs';
-import { Landing } from 'ts/containers/landing';
+import { Landing } from 'ts/containers/landing'; // Note(ez): When we're done we omit all old site imports
import { LaunchKit } from 'ts/containers/launch_kit';
import { NotFound } from 'ts/containers/not_found';
import { Wiki } from 'ts/containers/wiki';
@@ -19,6 +19,11 @@ import { store } from 'ts/redux/store';
import { WebsiteLegacyPaths, WebsitePaths } from 'ts/types';
import { muiTheme } from 'ts/utils/mui_theme';
+
+// Next (new website) routes. We should rename them later
+import { NextLanding } from 'ts/@next/pages/landing';
+
+
// Check if we've introduced an update that requires us to clear the tradeHistory local storage entries
tradeHistoryStorage.clearIfRequired();
trackedTokenStorage.clearIfRequired();
@@ -89,6 +94,10 @@ render(
<Provider store={store}>
<div>
<Switch>
+ {/*
+ Note(ez): We remove/replace all old routes with next routes
+ once we're ready to put a ring on it. for now let's keep em there for reference
+ */}
<Route exact={true} path="/" component={Landing as any} />
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
<Route path={WebsitePaths.LaunchKit} component={LaunchKit as any} />
@@ -97,6 +106,12 @@ render(
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
<Route path={WebsitePaths.About} component={About as any} />
<Route path={WebsitePaths.Wiki} component={Wiki as any} />
+
+
+ {/* Next (new site) routes */}
+ <Route exact path="/next" component={NextLanding as any} />
+
+
<Route
path={`${WebsitePaths.ZeroExJs}/:version?`}
component={LazyZeroExJSDocumentation}