diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-14 09:09:58 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-14 09:09:58 +0800 |
commit | da9de70bbcecc16fa3a7f6991623f5027628f2b3 (patch) | |
tree | 5ec1cdef371604aa360eeae4ae7cde3190a8783d /packages/react-docs/src/components | |
parent | f03afe6f1b6a6bfa339507ee47b42c62550444a0 (diff) | |
parent | e02dc13805349a770506350c69e9061f596b48b2 (diff) | |
download | dexon-0x-contracts-da9de70bbcecc16fa3a7f6991623f5027628f2b3.tar dexon-0x-contracts-da9de70bbcecc16fa3a7f6991623f5027628f2b3.tar.gz dexon-0x-contracts-da9de70bbcecc16fa3a7f6991623f5027628f2b3.tar.bz2 dexon-0x-contracts-da9de70bbcecc16fa3a7f6991623f5027628f2b3.tar.lz dexon-0x-contracts-da9de70bbcecc16fa3a7f6991623f5027628f2b3.tar.xz dexon-0x-contracts-da9de70bbcecc16fa3a7f6991623f5027628f2b3.tar.zst dexon-0x-contracts-da9de70bbcecc16fa3a7f6991623f5027628f2b3.zip |
Merge https://github.com/0xProject/0x-monorepo into feature/instant/metamask-connect-flow
Diffstat (limited to 'packages/react-docs/src/components')
-rw-r--r-- | packages/react-docs/src/components/type.tsx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/packages/react-docs/src/components/type.tsx b/packages/react-docs/src/components/type.tsx index 412b99b9d..fa3b658b4 100644 --- a/packages/react-docs/src/components/type.tsx +++ b/packages/react-docs/src/components/type.tsx @@ -1,9 +1,8 @@ -import { colors, constants as sharedConstants, Link, utils as sharedUtils } from '@0x/react-shared'; +import { colors, Link, utils as sharedUtils } from '@0x/react-shared'; import { Type as TypeDef, TypeDefinitionByName, TypeDocTypes } from '@0x/types'; import { errorUtils } from '@0x/utils'; import * as _ from 'lodash'; import * as React from 'react'; -import { Link as ScrollLink } from 'react-scroll'; import * as ReactTooltip from 'react-tooltip'; import { DocsInfo } from '../docs_info'; @@ -224,13 +223,7 @@ export const Type: React.SFC<TypeProps> = (props: TypeProps): any => { {sharedUtils.isUserOnMobile() || props.isInPopover || isExportedClassReference ? ( <span style={{ color: colors.lightBlueA700, cursor: 'pointer' }}>{typeName}</span> ) : ( - <ScrollLink - to={typeDefinitionAnchorId} - offset={0} - hashSpy={true} - duration={sharedConstants.DOCS_SCROLL_DURATION_MS} - containerId={sharedConstants.SCROLL_CONTAINER_ID} - > + <Link to={typeDefinitionAnchorId}> <span data-tip={true} data-for={id} @@ -252,7 +245,7 @@ export const Type: React.SFC<TypeProps> = (props: TypeProps): any => { /> </ReactTooltip> </span> - </ScrollLink> + </Link> )} </span> ); |