aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-07 01:31:38 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-07 01:31:38 +0800
commit625f40cfa6fdccd82392c02c1d785fac37d966eb (patch)
tree39302647e473fa782d6b048768f8ef8022451892 /packages
parent1e0522fe8f9c8b5c3918ef2c51ef3621895eebc0 (diff)
downloaddexon-sol-tools-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar
dexon-sol-tools-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.gz
dexon-sol-tools-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.bz2
dexon-sol-tools-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.lz
dexon-sol-tools-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.xz
dexon-sol-tools-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.zst
dexon-sol-tools-625f40cfa6fdccd82392c02c1d785fac37d966eb.zip
Add EthereumTypes to _renderDrawer
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/components/top_bar/top_bar.tsx11
1 files changed, 11 insertions, 0 deletions
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<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);
}