Explorar el Código

Hide empty cells in prop table

Remove awkward space when no default value is specified in the prop definition.
tags/0.3.0
TheoryOfNekomata hace 4 años
padre
commit
c4413725cc
Se han modificado 1 ficheros con 8 adiciones y 3 borrados
  1. +8
    -3
      packages/react-common-docs/src/components/Props/Props.tsx

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

@@ -313,9 +313,14 @@ const Props: React.FC<Props> = ({ of: ofAttr }) => {
<BodyCell <BodyCell
data-column-name={propDefaultValue ? 'Default' : undefined} data-column-name={propDefaultValue ? 'Default' : undefined}
> >
<Code> {
{getPropTypeHtml(propDefaultValue)} propDefaultValue
</Code> && (
<Code>
{getPropTypeHtml(propDefaultValue)}
</Code>
)
}
</BodyCell> </BodyCell>
<BodyCell> <BodyCell>
{prop.description} {prop.description}


||||||
x
 
000:0
Cargando…
Cancelar
Guardar