aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components/signature_block.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-28 06:00:01 +0800
committerFabio Berger <me@fabioberger.com>2018-09-28 06:00:01 +0800
commitac878d8fdbace787c7ffbc0fe68dd404d72452e3 (patch)
tree8833cb9f33f2b8beb81a956148b804b5cc5f4f72 /packages/react-docs/src/components/signature_block.tsx
parentac04dbf7e4f04ae4e0a6e9cce5232339597493ed (diff)
downloaddexon-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.tsx6
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' }}
>