aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-03 23:13:38 +0800
committerFabio Berger <me@fabioberger.com>2018-08-03 23:13:38 +0800
commitb8c8258404fa7959b71dd9e87fba16d32b57a868 (patch)
tree8f596df66563e6ee01ee22973ffb75e4ca1ca0dd /packages
parent3ee3fc2fb35b5ecc8237363d6307b7135ed4f927 (diff)
downloaddexon-0x-contracts-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar.gz
dexon-0x-contracts-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar.zst
dexon-0x-contracts-b8c8258404fa7959b71dd9e87fba16d32b57a868.zip
Don't render object literal properties that start with underscore since are private
Diffstat (limited to 'packages')
-rw-r--r--packages/react-docs/src/components/property_block.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/react-docs/src/components/property_block.tsx b/packages/react-docs/src/components/property_block.tsx
index 074c59c5f..ea80ba7b7 100644
--- a/packages/react-docs/src/components/property_block.tsx
+++ b/packages/react-docs/src/components/property_block.tsx
@@ -48,7 +48,8 @@ export class PropertyBlock extends React.Component<PropertyBlockProps, PropertyB
/>
</div>
<code className={`hljs ${constants.TYPE_TO_SYNTAX[this.props.docsInfo.type]}`}>
- {(property as any).callPath}{property.name}:{' '}
+ {(property as any).callPath}
+ {property.name}:{' '}
<Type type={property.type} sectionName={sectionName} docsInfo={this.props.docsInfo} />
</code>
{property.source && (