Ver código fonte

Hide empty cells in prop table

Remove awkward space when no default value is specified in the prop definition.
tags/0.3.0
TheoryOfNekomata 3 anos atrás
pai
commit
c4413725cc
1 arquivos alterados com 8 adições e 3 exclusões
  1. +8
    -3
      packages/react-common-docs/src/components/Props/Props.tsx

+ 8
- 3
packages/react-common-docs/src/components/Props/Props.tsx Ver arquivo

@@ -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}


Carregando…
Cancelar
Salvar