From 625f40cfa6fdccd82392c02c1d785fac37d966eb Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 6 Jun 2018 10:31:38 -0700 Subject: Add EthereumTypes to _renderDrawer --- packages/website/ts/components/top_bar/top_bar.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages') diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 3e97dc741..2561da4e6 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -385,6 +385,14 @@ export class TopBar extends React.Component { )} + {!this._isViewingEthereumTypesDocs() && ( + + + {this.props.translate.get(Key.EthereumTypes, Deco.Cap)}{' '} + {this.props.translate.get(Key.Docs, Deco.Cap)} + + + )} {!this._isViewingPortal() && ( @@ -513,6 +521,9 @@ export class TopBar extends React.Component { 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); } -- cgit v1.2.3