diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-07 01:31:38 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-07 01:31:38 +0800 |
commit | 625f40cfa6fdccd82392c02c1d785fac37d966eb (patch) | |
tree | 39302647e473fa782d6b048768f8ef8022451892 /packages/website/ts/components | |
parent | 1e0522fe8f9c8b5c3918ef2c51ef3621895eebc0 (diff) | |
download | dexon-0x-contracts-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar dexon-0x-contracts-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.gz dexon-0x-contracts-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.bz2 dexon-0x-contracts-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.lz dexon-0x-contracts-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.xz dexon-0x-contracts-625f40cfa6fdccd82392c02c1d785fac37d966eb.tar.zst dexon-0x-contracts-625f40cfa6fdccd82392c02c1d785fac37d966eb.zip |
Add EthereumTypes to _renderDrawer
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 11 |
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); } |