diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-12 00:51:00 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-12 00:51:00 +0800 |
commit | 0d201173ef8908de43bdb83acb7aa8ed4ce1e09a (patch) | |
tree | fade966b581d034ec62cfc04ea3f5a762a8b9a13 /packages/react-docs/src | |
parent | 2d43f312c8c3505bfd650be2a0975e39303d9d24 (diff) | |
download | dexon-sol-tools-0d201173ef8908de43bdb83acb7aa8ed4ce1e09a.tar dexon-sol-tools-0d201173ef8908de43bdb83acb7aa8ed4ce1e09a.tar.gz dexon-sol-tools-0d201173ef8908de43bdb83acb7aa8ed4ce1e09a.tar.bz2 dexon-sol-tools-0d201173ef8908de43bdb83acb7aa8ed4ce1e09a.tar.lz dexon-sol-tools-0d201173ef8908de43bdb83acb7aa8ed4ce1e09a.tar.xz dexon-sol-tools-0d201173ef8908de43bdb83acb7aa8ed4ce1e09a.tar.zst dexon-sol-tools-0d201173ef8908de43bdb83acb7aa8ed4ce1e09a.zip |
Replace remaining scroll-links with Link component
Diffstat (limited to 'packages/react-docs/src')
-rw-r--r-- | packages/react-docs/src/components/type.tsx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/packages/react-docs/src/components/type.tsx b/packages/react-docs/src/components/type.tsx index 412b99b9d..0adfedc5a 100644 --- a/packages/react-docs/src/components/type.tsx +++ b/packages/react-docs/src/components/type.tsx @@ -3,7 +3,6 @@ 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> ); |