diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-11-28 20:42:02 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-11-28 20:42:02 +0800 |
commit | 3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db (patch) | |
tree | c73bb48b8893dc3ceb04d3f4c56772f2f073317f /packages | |
parent | 471a4e981a8893b7e61fb0978faaf79e11269269 (diff) | |
download | dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar.gz dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.tar.zst dexon-sol-tools-3e2c93f5a0a6eca0ea9ec1ce7a8918badc97b1db.zip |
Adds initial /next route to index.tsx
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/@next/pages/landing.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/index.tsx | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/packages/website/ts/@next/pages/landing.tsx b/packages/website/ts/@next/pages/landing.tsx index 02ea36c56..c17a6d859 100644 --- a/packages/website/ts/@next/pages/landing.tsx +++ b/packages/website/ts/@next/pages/landing.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { render } from 'react-dom'; -export const Landing = () => ( +export const NextLanding = () => ( <div>0x</div> ); 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} |