aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/documentation
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-04 02:55:40 +0800
committerFabio Berger <me@fabioberger.com>2018-03-04 02:55:40 +0800
commit3592ebef0800fe3c32c9f1e4870b667a07a322bb (patch)
treeefc7b8c9ef06e457b769a0244b252cdd8f3f7cc7 /packages/website/ts/pages/documentation
parenta783d21409424a5da934d5909a9238d1d08fe88b (diff)
downloaddexon-sol-tools-3592ebef0800fe3c32c9f1e4870b667a07a322bb.tar
dexon-sol-tools-3592ebef0800fe3c32c9f1e4870b667a07a322bb.tar.gz
dexon-sol-tools-3592ebef0800fe3c32c9f1e4870b667a07a322bb.tar.bz2
dexon-sol-tools-3592ebef0800fe3c32c9f1e4870b667a07a322bb.tar.lz
dexon-sol-tools-3592ebef0800fe3c32c9f1e4870b667a07a322bb.tar.xz
dexon-sol-tools-3592ebef0800fe3c32c9f1e4870b667a07a322bb.tar.zst
dexon-sol-tools-3592ebef0800fe3c32c9f1e4870b667a07a322bb.zip
Move over AnchorTitle and associated elements
Diffstat (limited to 'packages/website/ts/pages/documentation')
-rw-r--r--packages/website/ts/pages/documentation/documentation.tsx2
-rw-r--r--packages/website/ts/pages/documentation/event_definition.tsx4
-rw-r--r--packages/website/ts/pages/documentation/method_block.tsx4
-rw-r--r--packages/website/ts/pages/documentation/type.tsx9
-rw-r--r--packages/website/ts/pages/documentation/type_definition.tsx4
5 files changed, 12 insertions, 11 deletions
diff --git a/packages/website/ts/pages/documentation/documentation.tsx b/packages/website/ts/pages/documentation/documentation.tsx
index 699bef7a8..ce5f7eb6c 100644
--- a/packages/website/ts/pages/documentation/documentation.tsx
+++ b/packages/website/ts/pages/documentation/documentation.tsx
@@ -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,
diff --git a/packages/website/ts/pages/documentation/event_definition.tsx b/packages/website/ts/pages/documentation/event_definition.tsx
index e62c9ecbd..7ac17e608 100644
--- a/packages/website/ts/pages/documentation/event_definition.tsx
+++ b/packages/website/ts/pages/documentation/event_definition.tsx
@@ -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 {
diff --git a/packages/website/ts/pages/documentation/method_block.tsx b/packages/website/ts/pages/documentation/method_block.tsx
index d2c96bf8c..e1f09346b 100644
--- a/packages/website/ts/pages/documentation/method_block.tsx
+++ b/packages/website/ts/pages/documentation/method_block.tsx
@@ -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';
diff --git a/packages/website/ts/pages/documentation/type.tsx b/packages/website/ts/pages/documentation/type.tsx
index b306fa053..2fec4c95f 100644
--- a/packages/website/ts/pages/documentation/type.tsx
+++ b/packages/website/ts/pages/documentation/type.tsx
@@ -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',
diff --git a/packages/website/ts/pages/documentation/type_definition.tsx b/packages/website/ts/pages/documentation/type_definition.tsx
index 02bf63258..32c388ace 100644
--- a/packages/website/ts/pages/documentation/type_definition.tsx
+++ b/packages/website/ts/pages/documentation/type_definition.tsx
@@ -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';