Remove careers page feature flag
This commit is contained in:
parent
35113487f1
commit
31b8dd1bfc
@ -76,10 +76,7 @@ render(
|
|||||||
<Switch>
|
<Switch>
|
||||||
<Route exact={true} path="/" component={Landing as any} />
|
<Route exact={true} path="/" component={Landing as any} />
|
||||||
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
|
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
|
||||||
{/* TODO: Remove this once we ship the jobs page*/}
|
<Route path={WebsitePaths.Careers} component={Jobs as any} />
|
||||||
{utils.shouldShowJobsPage() && (
|
|
||||||
<Route path={WebsitePaths.Careers} component={Jobs as any} />
|
|
||||||
)}
|
|
||||||
<Route path={WebsitePaths.Portal} component={LazyPortal} />
|
<Route path={WebsitePaths.Portal} component={LazyPortal} />
|
||||||
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
|
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
|
||||||
<Route path={WebsitePaths.About} component={About as any} />
|
<Route path={WebsitePaths.About} component={About as any} />
|
||||||
@ -129,13 +126,7 @@ render(
|
|||||||
path={`${WebsiteLegacyPaths.Deployer}/:version?`}
|
path={`${WebsiteLegacyPaths.Deployer}/:version?`}
|
||||||
component={LazySolCompilerDocumentation}
|
component={LazySolCompilerDocumentation}
|
||||||
/>
|
/>
|
||||||
{/* TODO: Remove this once we ship the jobs page*/}
|
<Route path={WebsiteLegacyPaths.Jobs} component={Jobs as any} />
|
||||||
{utils.shouldShowJobsPage() ? (
|
|
||||||
<Route path={WebsiteLegacyPaths.Jobs} component={Jobs as any} />
|
|
||||||
) : (
|
|
||||||
<Route path={WebsiteLegacyPaths.Jobs} component={Redirector as any} />
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Route path={`${WebsitePaths.Docs}`} component={LazyZeroExJSDocumentation} />
|
<Route path={`${WebsitePaths.Docs}`} component={LazyZeroExJSDocumentation} />
|
||||||
<Route component={NotFound as any} />
|
<Route component={NotFound as any} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
@ -363,9 +363,6 @@ export const utils = {
|
|||||||
}
|
}
|
||||||
return Environments.UNKNOWN;
|
return Environments.UNKNOWN;
|
||||||
},
|
},
|
||||||
shouldShowJobsPage(): boolean {
|
|
||||||
return utils.isDevelopment() || utils.isStaging() || utils.isDogfood();
|
|
||||||
},
|
|
||||||
getEthToken(tokenByAddress: TokenByAddress): Token {
|
getEthToken(tokenByAddress: TokenByAddress): Token {
|
||||||
return utils.getTokenBySymbol(constants.ETHER_TOKEN_SYMBOL, tokenByAddress);
|
return utils.getTokenBySymbol(constants.ETHER_TOKEN_SYMBOL, tokenByAddress);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user