From 9212d67e2fad159fa7eb3feed751814ea515416c Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 4 Jun 2018 10:54:14 -0700 Subject: Add a documentation page for ethereum types --- packages/website/ts/components/top_bar/top_bar.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/website/ts/components/top_bar/top_bar.tsx') diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index e2d791ae3..3e97dc741 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -165,6 +165,12 @@ export class TopBar extends React.Component { primaryText={this.props.translate.get(Key.SolCov, Deco.CapWords)} /> , + + + , 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/website/ts/components/top_bar/top_bar.tsx') 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