aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/index.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-15 06:50:46 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-15 06:50:46 +0800
commit2cc7289b7b3c3177230957ff2384c58bed4266f3 (patch)
tree21acfb995ece8753c25cb9e2cf0f05de86a1b16c /packages/website/ts/index.tsx
parent81d6df925e430f2199ddef44b3ccd353e6c3c19b (diff)
parente7eb220c503118631a6b23071c71b4b55df5b5cf (diff)
downloaddexon-sol-tools-2cc7289b7b3c3177230957ff2384c58bed4266f3.tar
dexon-sol-tools-2cc7289b7b3c3177230957ff2384c58bed4266f3.tar.gz
dexon-sol-tools-2cc7289b7b3c3177230957ff2384c58bed4266f3.tar.bz2
dexon-sol-tools-2cc7289b7b3c3177230957ff2384c58bed4266f3.tar.lz
dexon-sol-tools-2cc7289b7b3c3177230957ff2384c58bed4266f3.tar.xz
dexon-sol-tools-2cc7289b7b3c3177230957ff2384c58bed4266f3.tar.zst
dexon-sol-tools-2cc7289b7b3c3177230957ff2384c58bed4266f3.zip
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/website/portal-v2-analytics
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r--packages/website/ts/index.tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index 719604c02..249b4fdc9 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -4,9 +4,10 @@ import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom';
import * as injectTapEventPlugin from 'react-tap-event-plugin';
-import { Redirecter } from 'ts/components/redirecter';
+import { Redirector } from 'ts/components/redirector';
import { About } from 'ts/containers/about';
import { FAQ } from 'ts/containers/faq';
+import { Jobs } from 'ts/containers/jobs';
import { Landing } from 'ts/containers/landing';
import { NotFound } from 'ts/containers/not_found';
import { Wiki } from 'ts/containers/wiki';
@@ -86,8 +87,12 @@ render(
<Switch>
<Route exact={true} path="/" component={Landing as any} />
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
-
- <Route path={WebsitePaths.Jobs} component={Redirecter as any} />
+ {/* TODO: Remove this once we ship the jobs page*/}
+ {utils.shouldShowJobsPage() ? (
+ <Route path={WebsitePaths.Jobs} component={Jobs as any} />
+ ) : (
+ <Route path={WebsitePaths.Jobs} component={Redirector as any} />
+ )}
<Route path={WebsitePaths.Portal} component={LazyPortal} />
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
<Route path={WebsitePaths.About} component={About as any} />