Add EthereumTypes to _renderDrawer

This commit is contained in:
Leonid Logvinov 2018-06-06 10:31:38 -07:00
parent 1e0522fe8f
commit 625f40cfa6
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -385,6 +385,14 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
</MenuItem>
</Link>
)}
{!this._isViewingEthereumTypesDocs() && (
<Link to={WebsitePaths.EthereumTypes} className="text-decoration-none">
<MenuItem className="py2">
{this.props.translate.get(Key.EthereumTypes, Deco.Cap)}{' '}
{this.props.translate.get(Key.Docs, Deco.Cap)}
</MenuItem>
</Link>
)}
{!this._isViewingPortal() && (
<Link to={`${WebsitePaths.Portal}`} className="text-decoration-none">
<MenuItem className="py2">
@ -513,6 +521,9 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
private _isViewingSubprovidersDocs(): boolean {
return _.includes(this.props.location.pathname, WebsitePaths.Subproviders);
}
private _isViewingEthereumTypesDocs(): boolean {
return _.includes(this.props.location.pathname, WebsitePaths.EthereumTypes);
}
private _isViewingWiki(): boolean {
return _.includes(this.props.location.pathname, WebsitePaths.Wiki);
}