diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-28 06:00:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-28 06:00:01 +0800 |
commit | ac878d8fdbace787c7ffbc0fe68dd404d72452e3 (patch) | |
tree | 8833cb9f33f2b8beb81a956148b804b5cc5f4f72 /packages/react-docs/src/components/signature_block.tsx | |
parent | ac04dbf7e4f04ae4e0a6e9cce5232339597493ed (diff) | |
download | dexon-0x-contracts-ac878d8fdbace787c7ffbc0fe68dd404d72452e3.tar.gz dexon-0x-contracts-ac878d8fdbace787c7ffbc0fe68dd404d72452e3.tar.zst dexon-0x-contracts-ac878d8fdbace787c7ffbc0fe68dd404d72452e3.zip |
Improve keys
Diffstat (limited to 'packages/react-docs/src/components/signature_block.tsx')
-rw-r--r-- | packages/react-docs/src/components/signature_block.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/react-docs/src/components/signature_block.tsx b/packages/react-docs/src/components/signature_block.tsx index fc4db10ad..1e3de3e58 100644 --- a/packages/react-docs/src/components/signature_block.tsx +++ b/packages/react-docs/src/components/signature_block.tsx @@ -124,12 +124,12 @@ export class SignatureBlock extends React.Component<SignatureBlockProps, Signatu </div> ); } - private _renderParameterDescriptions(parameters: Parameter[]): React.ReactNode { - const descriptions = _.map(parameters, parameter => { + private _renderParameterDescriptions(parameters: Parameter[], name: string): React.ReactNode { + const descriptions = _.map(parameters, (parameter: Parameter, i: number) => { const isOptional = parameter.isOptional; return ( <div - key={`param-description-${parameter.name}`} + key={`param-description-${parameter.name}-${name}-${i}`} className="flex pb1 mb2" style={{ borderBottom: '1px solid #f0f4f7' }} > |