Move over AnchorTitle and associated elements
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { styles } from '@0xproject/react-shared';
|
||||
import * as _ from 'lodash';
|
||||
import CircularProgress from 'material-ui/CircularProgress';
|
||||
import * as React from 'react';
|
||||
@@ -23,7 +24,6 @@ import {
|
||||
Networks,
|
||||
Property,
|
||||
SolidityMethod,
|
||||
Styles,
|
||||
SupportedDocJson,
|
||||
TypeDefinitionByName,
|
||||
TypescriptMethod,
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import { AnchorTitle, HeaderSizes } from '@0xproject/react-shared/anchor_title';
|
||||
import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import { DocsInfo } from 'ts/pages/documentation/docs_info';
|
||||
import { Type } from 'ts/pages/documentation/type';
|
||||
import { AnchorTitle } from 'ts/pages/shared/anchor_title';
|
||||
import { Event, EventArg, HeaderSizes } from 'ts/types';
|
||||
import { Event, EventArg } from 'ts/types';
|
||||
import { colors } from 'ts/utils/colors';
|
||||
|
||||
interface EventDefinitionProps {
|
||||
|
@@ -1,11 +1,11 @@
|
||||
import { AnchorTitle, HeaderSizes, Styles } from '@0xproject/react-shared/anchor_title';
|
||||
import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import { Comment } from 'ts/pages/documentation/comment';
|
||||
import { DocsInfo } from 'ts/pages/documentation/docs_info';
|
||||
import { MethodSignature } from 'ts/pages/documentation/method_signature';
|
||||
import { SourceLink } from 'ts/pages/documentation/source_link';
|
||||
import { AnchorTitle } from 'ts/pages/shared/anchor_title';
|
||||
import { HeaderSizes, Parameter, SolidityMethod, Styles, TypeDefinitionByName, TypescriptMethod } from 'ts/types';
|
||||
import { Parameter, SolidityMethod, TypeDefinitionByName, TypescriptMethod } from 'ts/types';
|
||||
import { colors } from 'ts/utils/colors';
|
||||
import { typeDocUtils } from 'ts/utils/typedoc_utils';
|
||||
|
||||
|
@@ -1,3 +1,4 @@
|
||||
import { constants as sharedConstants, utils as sharedUtils } from '@0xproject/react-shared';
|
||||
import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import { Link as ScrollLink } from 'react-scroll';
|
||||
@@ -178,12 +179,12 @@ export function Type(props: TypeProps): any {
|
||||
<ScrollLink
|
||||
to={typeDefinitionAnchorId}
|
||||
offset={0}
|
||||
duration={constants.DOCS_SCROLL_DURATION_MS}
|
||||
containerId={constants.DOCS_CONTAINER_ID}
|
||||
duration={sharedConstants.DOCS_SCROLL_DURATION_MS}
|
||||
containerId={sharedConstants.DOCS_CONTAINER_ID}
|
||||
>
|
||||
{_.isUndefined(typeDefinition) || utils.isUserOnMobile() ? (
|
||||
<span
|
||||
onClick={utils.setUrlHash.bind(null, typeDefinitionAnchorId)}
|
||||
onClick={sharedUtils.setUrlHash.bind(null, typeDefinitionAnchorId)}
|
||||
style={{ color: colors.lightBlueA700, cursor: 'pointer' }}
|
||||
>
|
||||
{typeName}
|
||||
@@ -192,7 +193,7 @@ export function Type(props: TypeProps): any {
|
||||
<span
|
||||
data-tip={true}
|
||||
data-for={id}
|
||||
onClick={utils.setUrlHash.bind(null, typeDefinitionAnchorId)}
|
||||
onClick={sharedUtils.setUrlHash.bind(null, typeDefinitionAnchorId)}
|
||||
style={{
|
||||
color: colors.lightBlueA700,
|
||||
cursor: 'pointer',
|
||||
|
@@ -1,3 +1,4 @@
|
||||
import { AnchorTitle, HeaderSizes } from '@0xproject/react-shared/anchor_title';
|
||||
import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import { Comment } from 'ts/pages/documentation/comment';
|
||||
@@ -7,8 +8,7 @@ import { Enum } from 'ts/pages/documentation/enum';
|
||||
import { Interface } from 'ts/pages/documentation/interface';
|
||||
import { MethodSignature } from 'ts/pages/documentation/method_signature';
|
||||
import { Type } from 'ts/pages/documentation/type';
|
||||
import { AnchorTitle } from 'ts/pages/shared/anchor_title';
|
||||
import { CustomType, CustomTypeChild, HeaderSizes, KindString, TypeDocTypes } from 'ts/types';
|
||||
import { CustomType, CustomTypeChild, KindString, TypeDocTypes } from 'ts/types';
|
||||
import { colors } from 'ts/utils/colors';
|
||||
import { utils } from 'ts/utils/utils';
|
||||
|
||||
|
Reference in New Issue
Block a user