diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-09-26 02:35:18 +0800 |
---|---|---|
committer | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-09-26 03:51:03 +0800 |
commit | e8c8d3e722676a250428795f70143ed3e5289cbc (patch) | |
tree | fde076dca9f3f840299cdffacab64189e07a7701 /packages/react-docs/src | |
parent | 574270d061f664176df012c5ef0b649e6d581e6d (diff) | |
download | dexon-sol-tools-e8c8d3e722676a250428795f70143ed3e5289cbc.tar dexon-sol-tools-e8c8d3e722676a250428795f70143ed3e5289cbc.tar.gz dexon-sol-tools-e8c8d3e722676a250428795f70143ed3e5289cbc.tar.bz2 dexon-sol-tools-e8c8d3e722676a250428795f70143ed3e5289cbc.tar.lz dexon-sol-tools-e8c8d3e722676a250428795f70143ed3e5289cbc.tar.xz dexon-sol-tools-e8c8d3e722676a250428795f70143ed3e5289cbc.tar.zst dexon-sol-tools-e8c8d3e722676a250428795f70143ed3e5289cbc.zip |
fix: rename SupportedDocJson field to SolDoc
from Solidity
https://github.com/0xProject/0x-monorepo/pull/1004#discussion_r219976199
https://github.com/0xProject/0x-monorepo/pull/1004
Diffstat (limited to 'packages/react-docs/src')
-rw-r--r-- | packages/react-docs/src/components/documentation.tsx | 2 | ||||
-rw-r--r-- | packages/react-docs/src/types.ts | 2 | ||||
-rw-r--r-- | packages/react-docs/src/utils/constants.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/packages/react-docs/src/components/documentation.tsx b/packages/react-docs/src/components/documentation.tsx index 0974297bc..3cd14923c 100644 --- a/packages/react-docs/src/components/documentation.tsx +++ b/packages/react-docs/src/components/documentation.tsx @@ -329,7 +329,7 @@ export class Documentation extends React.Component<DocumentationProps, Documenta return <div>{externalExports}</div>; } private _renderNetworkBadgesIfExists(sectionName: string): React.ReactNode { - if (this.props.docsInfo.type !== SupportedDocJson.Solidity) { + if (this.props.docsInfo.type !== SupportedDocJson.SolDoc) { return null; } diff --git a/packages/react-docs/src/types.ts b/packages/react-docs/src/types.ts index f475c2756..153448513 100644 --- a/packages/react-docs/src/types.ts +++ b/packages/react-docs/src/types.ts @@ -38,7 +38,7 @@ export enum KindString { } export enum SupportedDocJson { - Solidity = 'SOLIDITY', + SolDoc = 'SOL_DOC', TypeDoc = 'TYPEDOC', } diff --git a/packages/react-docs/src/utils/constants.ts b/packages/react-docs/src/utils/constants.ts index 35a939c51..b5b6cc00d 100644 --- a/packages/react-docs/src/utils/constants.ts +++ b/packages/react-docs/src/utils/constants.ts @@ -4,7 +4,7 @@ export const constants = { TYPES_SECTION_NAME: 'types', EXTERNAL_EXPORTS_SECTION_NAME: 'external exports', TYPE_TO_SYNTAX: { - [SupportedDocJson.Solidity]: 'solidity', + [SupportedDocJson.SolDoc]: 'solidity', [SupportedDocJson.TypeDoc]: 'typescript', } as { [supportedDocType: string]: string }, }; |