diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-07 02:38:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 02:38:43 +0800 |
commit | b1e8545981de55088abcdfa6273a3cc7bc338e77 (patch) | |
tree | 04f95ff2c9005b683a82a9a63eddef156b9d3eab /packages/website/ts/components/top_bar/top_bar.tsx | |
parent | 49049b8c126c779d68934eaceb6835ebf3a24a49 (diff) | |
parent | 625f40cfa6fdccd82392c02c1d785fac37d966eb (diff) | |
download | dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.gz dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.bz2 dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.lz dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.xz dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.tar.zst dexon-sol-tools-b1e8545981de55088abcdfa6273a3cc7bc338e77.zip |
Merge pull request #653 from 0xProject/feature/ethereum-types-docs
Add a documentation page for ethereum-types package
Diffstat (limited to 'packages/website/ts/components/top_bar/top_bar.tsx')
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 17 |
1 files changed, 17 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 606fd845a..81ab2c06c 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<TopBarProps, TopBarState> { primaryText={this.props.translate.get(Key.SolCov, Deco.CapWords)} /> </Link>, + <Link key="subMenuItem-ethereum-types" to={WebsitePaths.EthereumTypes} className="text-decoration-none"> + <MenuItem + style={{ fontSize: styles.menuItem.fontSize }} + primaryText={this.props.translate.get(Key.EthereumTypes, Deco.CapWords)} + /> + </Link>, <a key="subMenuItem-whitePaper" target="_blank" @@ -379,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"> @@ -507,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); } |