aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-22 00:28:20 +0800
committerFabio Berger <me@fabioberger.com>2017-12-22 00:28:20 +0800
commitd725de72861c6a6218c7f4822a339175a2da7403 (patch)
tree0c5312137148fb90682dec381203ae25da08a59d /packages/website/ts/pages
parent3e91773cd94162fca1855638a76d7bd2f510558a (diff)
downloaddexon-sol-tools-d725de72861c6a6218c7f4822a339175a2da7403.tar
dexon-sol-tools-d725de72861c6a6218c7f4822a339175a2da7403.tar.gz
dexon-sol-tools-d725de72861c6a6218c7f4822a339175a2da7403.tar.bz2
dexon-sol-tools-d725de72861c6a6218c7f4822a339175a2da7403.tar.lz
dexon-sol-tools-d725de72861c6a6218c7f4822a339175a2da7403.tar.xz
dexon-sol-tools-d725de72861c6a6218c7f4822a339175a2da7403.tar.zst
dexon-sol-tools-d725de72861c6a6218c7f4822a339175a2da7403.zip
Create types sectionName constant
Diffstat (limited to 'packages/website/ts/pages')
-rw-r--r--packages/website/ts/pages/documentation/method_signature.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/pages/documentation/method_signature.tsx b/packages/website/ts/pages/documentation/method_signature.tsx
index 14b91ab5d..366d4c13e 100644
--- a/packages/website/ts/pages/documentation/method_signature.tsx
+++ b/packages/website/ts/pages/documentation/method_signature.tsx
@@ -3,6 +3,7 @@ import * as React from 'react';
import {DocsInfo} from 'ts/pages/documentation/docs_info';
import {Type} from 'ts/pages/documentation/type';
import {Parameter, SolidityMethod, TypeDefinitionByName, TypescriptMethod} from 'ts/types';
+import {constants} from 'ts/utils/constants';
interface MethodSignatureProps {
method: TypescriptMethod|SolidityMethod;
@@ -19,7 +20,7 @@ const defaultProps = {
};
export const MethodSignature: React.SFC<MethodSignatureProps> = (props: MethodSignatureProps) => {
- const sectionName = 'types';
+ const sectionName = constants.TYPES_SECTION_NAME;
const parameters = renderParameters(
props.method, props.docsInfo, sectionName, props.typeDefinitionByName,
);