aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-28 06:30:11 +0800
committerFabio Berger <me@fabioberger.com>2018-09-28 06:30:11 +0800
commit092b184f4534a42d36d30d2d10b34b47255d2ee3 (patch)
treebb0c741b911d71d4e90d689261db255dfe5f9118 /packages/react-docs/src/components
parentb2ff7bda02c02a950eb2cc656eaa5780d7b71b5b (diff)
downloaddexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.gz
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.bz2
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.lz
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.xz
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.tar.zst
dexon-sol-tools-092b184f4534a42d36d30d2d10b34b47255d2ee3.zip
Fix linter
Diffstat (limited to 'packages/react-docs/src/components')
-rw-r--r--packages/react-docs/src/components/signature_block.tsx4
-rw-r--r--packages/react-docs/src/components/type.tsx1
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/react-docs/src/components/signature_block.tsx b/packages/react-docs/src/components/signature_block.tsx
index cad72daf4..5ec82983a 100644
--- a/packages/react-docs/src/components/signature_block.tsx
+++ b/packages/react-docs/src/components/signature_block.tsx
@@ -50,7 +50,7 @@ export class SignatureBlock extends React.Component<SignatureBlockProps, Signatu
const method = this.props.method;
const isFallback = (method as SolidityMethod).isFallback;
- const onlyHasNamedParameters = !_.isUndefined(_.find(method.parameters, p => !_.isEmpty(p.name)));
+ const hasExclusivelyNamedParams = !_.isUndefined(_.find(method.parameters, p => !_.isEmpty(p.name)));
return (
<div
id={`${this.props.sectionName}-${method.name}`}
@@ -99,7 +99,7 @@ export class SignatureBlock extends React.Component<SignatureBlockProps, Signatu
{method.comment && <Comment comment={method.comment} className="py2" />}
{method.parameters &&
!_.isEmpty(method.parameters) &&
- onlyHasNamedParameters && (
+ hasExclusivelyNamedParams && (
<div>
<h4 className="pb1 thin" style={{ borderBottom: '1px solid #e1e8ed' }}>
ARGUMENTS
diff --git a/packages/react-docs/src/components/type.tsx b/packages/react-docs/src/components/type.tsx
index 8ff2fa3cc..028376ba9 100644
--- a/packages/react-docs/src/components/type.tsx
+++ b/packages/react-docs/src/components/type.tsx
@@ -7,7 +7,6 @@ import { Link as ScrollLink } from 'react-scroll';
import * as ReactTooltip from 'react-tooltip';
import { DocsInfo } from '../docs_info';
-import { constants } from '../utils/constants';
import { Signature } from './signature';
import { TypeDefinition } from './type_definition';