diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-11 17:14:22 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-11 17:14:22 +0800 |
commit | f0afc0ae45c82d6e1227307e9cc7eca711ccaa05 (patch) | |
tree | 52a140b962114bb440afb267628ef0342097a591 /packages/website/ts/components/top_bar/top_bar.tsx | |
parent | 6d1a587c5c5666a54c29302db90dd4d9fc79059e (diff) | |
download | dexon-0x-contracts-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar dexon-0x-contracts-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.gz dexon-0x-contracts-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.bz2 dexon-0x-contracts-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.lz dexon-0x-contracts-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.xz dexon-0x-contracts-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.zst dexon-0x-contracts-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.zip |
Update 0x.js and web3-wrapper doc urls so that last segment is identical to package name. Keep legacy endpoints.
Diffstat (limited to 'packages/website/ts/components/top_bar/top_bar.tsx')
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 4b2e82119..13351dcdc 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -15,7 +15,7 @@ import { TopBarMenuItem } from 'ts/components/top_bar/top_bar_menu_item'; import { DropDown } from 'ts/components/ui/drop_down'; import { Identicon } from 'ts/components/ui/identicon'; import { Dispatcher } from 'ts/redux/dispatcher'; -import { Deco, Key, ProviderType, WebsitePaths } from 'ts/types'; +import { Deco, Key, ProviderType, WebsiteLegacyPaths, WebsitePaths } from 'ts/types'; import { constants } from 'ts/utils/constants'; import { Translate } from 'ts/utils/translate'; @@ -462,7 +462,10 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { return _.includes(this.props.location.pathname, WebsitePaths.FAQ); } private _isViewing0xjsDocs() { - return _.includes(this.props.location.pathname, WebsitePaths.ZeroExJs); + return ( + _.includes(this.props.location.pathname, WebsitePaths.ZeroExJs) || + _.includes(this.props.location.pathname, WebsiteLegacyPaths.ZeroExJs) + ); } private _isViewingConnectDocs() { return _.includes(this.props.location.pathname, WebsitePaths.Connect); @@ -471,7 +474,10 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { return _.includes(this.props.location.pathname, WebsitePaths.SmartContracts); } private _isViewingWeb3WrapperDocs() { - return _.includes(this.props.location.pathname, WebsitePaths.Web3Wrapper); + return ( + _.includes(this.props.location.pathname, WebsitePaths.Web3Wrapper) || + _.includes(this.props.location.pathname, WebsiteLegacyPaths.Web3Wrapper) + ); } private _isViewingDeployerDocs() { return _.includes(this.props.location.pathname, WebsitePaths.Deployer); |