Add EthereumTypes to _renderDrawer

This commit is contained in:
Leonid Logvinov
2018-06-06 10:31:38 -07:00
parent 1e0522fe8f
commit 625f40cfa6

View File

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