Add EthereumTypes to _renderDrawer
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user