diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-20 04:26:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 04:26:34 +0800 |
commit | c39ac903a972930d538f8fa3292c658201b1c5e5 (patch) | |
tree | 601833585d62dea776eff036520028c78917dbd2 /packages/website/ts/pages/documentation/type_definition.tsx | |
parent | 1316a2dd2a8971771f750d8a7f457212daad520b (diff) | |
parent | 8a940a800aa6f042f7932df6de83148c3cc3f268 (diff) | |
download | dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.gz dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.bz2 dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.lz dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.xz dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.zst dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.zip |
Merge pull request #275 from 0xProject/refactor/website
Refactor Website
Diffstat (limited to 'packages/website/ts/pages/documentation/type_definition.tsx')
-rw-r--r-- | packages/website/ts/pages/documentation/type_definition.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/website/ts/pages/documentation/type_definition.tsx b/packages/website/ts/pages/documentation/type_definition.tsx index edcf7bf47..09413faaf 100644 --- a/packages/website/ts/pages/documentation/type_definition.tsx +++ b/packages/website/ts/pages/documentation/type_definition.tsx @@ -9,10 +9,9 @@ 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 {colors} from 'ts/utils/colors'; import {utils} from 'ts/utils/utils'; -const KEYWORD_COLOR = '#a81ca6'; - interface TypeDefinitionProps { customType: CustomType; shouldAddId?: boolean; @@ -76,11 +75,15 @@ export class TypeDefinition extends React.Component<TypeDefinitionProps, TypeDef ); break; - case KindString['Type alias']: + case KindString.TypeAlias: typePrefix = 'Type Alias'; codeSnippet = ( <span> - <span style={{color: KEYWORD_COLOR}}>type</span> {customType.name} ={' '} + <span + style={{color: colors.lightPurple}} + > + type + </span> {customType.name} ={' '} {customType.type.typeDocType !== TypeDocTypes.Reflection ? <Type type={customType.type} docsInfo={this.props.docsInfo} /> : <MethodSignature |