This website works better with JavaScript.
Home
Explore
Help
Sign In
tesseract-design
/
react-common
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1
Wiki
Activity
Browse Source
Hide empty cells in prop table
Remove awkward space when no default value is specified in the prop definition.
tags/0.3.0
TheoryOfNekomata
4 years ago
parent
bfb49948d5
commit
c4413725cc
1 changed files
with
8 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-3
packages/react-common-docs/src/components/Props/Props.tsx
+ 8
- 3
packages/react-common-docs/src/components/Props/Props.tsx
View File
@@ -313,9 +313,14 @@ const Props: React.FC<Props> = ({ of: ofAttr }) => {
<BodyCell
data-column-name={propDefaultValue ? 'Default' : undefined}
>
<Code>
{getPropTypeHtml(propDefaultValue)}
</Code>
{
propDefaultValue
&& (
<Code>
{getPropTypeHtml(propDefaultValue)}
</Code>
)
}
</BodyCell>
<BodyCell>
{prop.description}
Write
Preview
Loading…
Cancel
Save