aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components/documentation.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-01 23:37:44 +0800
committerGitHub <noreply@github.com>2018-10-01 23:37:44 +0800
commitbad6761e13d5348eccdf8ae37e83b152740dbe45 (patch)
tree9687e509f18164ac78ff612ead79ebd9eb977527 /packages/react-docs/src/components/documentation.tsx
parentac14dd2b29b42ef4d2a46db9b70d4d30cf9bd40f (diff)
parent6ffdc318e7b15cc43f4b3e0ffc39786cdf4c5c05 (diff)
downloaddexon-sol-tools-bad6761e13d5348eccdf8ae37e83b152740dbe45.tar
dexon-sol-tools-bad6761e13d5348eccdf8ae37e83b152740dbe45.tar.gz
dexon-sol-tools-bad6761e13d5348eccdf8ae37e83b152740dbe45.tar.bz2
dexon-sol-tools-bad6761e13d5348eccdf8ae37e83b152740dbe45.tar.lz
dexon-sol-tools-bad6761e13d5348eccdf8ae37e83b152740dbe45.tar.xz
dexon-sol-tools-bad6761e13d5348eccdf8ae37e83b152740dbe45.tar.zst
dexon-sol-tools-bad6761e13d5348eccdf8ae37e83b152740dbe45.zip
Merge pull request #1099 from 0xProject/solidityDocRefImprovements
Solidity Doc Improvements
Diffstat (limited to 'packages/react-docs/src/components/documentation.tsx')
-rw-r--r--packages/react-docs/src/components/documentation.tsx6
1 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 3cd14923c..a23111297 100644
--- a/packages/react-docs/src/components/documentation.tsx
+++ b/packages/react-docs/src/components/documentation.tsx
@@ -218,11 +218,11 @@ export class Documentation extends React.Component<DocumentationProps, Documenta
_.isEmpty(docSection.events);
const sortedTypes = _.sortBy(docSection.types, 'name');
- const typeDefs = _.map(sortedTypes, customType => {
+ const typeDefs = _.map(sortedTypes, (customType, i) => {
return (
<TypeDefinition
sectionName={sectionName}
- key={`type-${customType.name}`}
+ key={`type-${customType.name}-${i}`}
customType={customType}
docsInfo={this.props.docsInfo}
typeDefinitionByName={typeDefinitionByName}
@@ -353,7 +353,7 @@ export class Documentation extends React.Component<DocumentationProps, Documenta
key={`badge-${networkName}-${sectionName}`}
href={linkIfExists}
target="_blank"
- style={{ color: colors.white, textDecoration: 'none' }}
+ style={{ color: colors.white, textDecoration: 'none', marginTop: 8 }}
>
<Badge title={networkName} backgroundColor={networkNameToColor[networkName]} />
</a>