aboutsummaryrefslogtreecommitdiffstats
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
parent3ee3fc2fb35b5ecc8237363d6307b7135ed4f927 (diff)
downloaddexon-sol-tools-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar
dexon-sol-tools-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar.gz
dexon-sol-tools-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar.bz2
dexon-sol-tools-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar.lz
dexon-sol-tools-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar.xz
dexon-sol-tools-b8c8258404fa7959b71dd9e87fba16d32b57a868.tar.zst
dexon-sol-tools-b8c8258404fa7959b71dd9e87fba16d32b57a868.zip
Don't render object literal properties that start with underscore since are private
-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 && (