aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/index.tsx
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-06-14 03:29:36 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-06-14 03:29:36 +0800
commitd172a97247f133a5340c5df263fe0f23019db956 (patch)
tree1b45b302f0d73ae58ba466c6289e030dff2469d1 /packages/website/ts/index.tsx
parent8a3df7e434c98d75e0a8ccaec8c16122d5a2952b (diff)
downloaddexon-sol-tools-d172a97247f133a5340c5df263fe0f23019db956.tar
dexon-sol-tools-d172a97247f133a5340c5df263fe0f23019db956.tar.gz
dexon-sol-tools-d172a97247f133a5340c5df263fe0f23019db956.tar.bz2
dexon-sol-tools-d172a97247f133a5340c5df263fe0f23019db956.tar.lz
dexon-sol-tools-d172a97247f133a5340c5df263fe0f23019db956.tar.xz
dexon-sol-tools-d172a97247f133a5340c5df263fe0f23019db956.tar.zst
dexon-sol-tools-d172a97247f133a5340c5df263fe0f23019db956.zip
Add back redirector behind feature flag
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r--packages/website/ts/index.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index 5501f5972..249b4fdc9 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -4,6 +4,7 @@ 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 { Redirector } from 'ts/components/redirector';
import { About } from 'ts/containers/about';
import { FAQ } from 'ts/containers/faq';
import { Jobs } from 'ts/containers/jobs';
@@ -86,7 +87,12 @@ render(
<Switch>
<Route exact={true} path="/" component={Landing as any} />
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
- <Route path={WebsitePaths.Jobs} component={Jobs 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} />