Fix style of product type attributes empty table

This commit is contained in:
Dawid Tarasiuk 2020-10-02 12:36:41 +02:00
parent 769f30e135
commit 5adcc77e14

View file

@ -125,26 +125,28 @@ const ProductTypeAttributes: React.FC<ProductTypeAttributesProps> = props => {
<col className={classes.colSlug} /> <col className={classes.colSlug} />
<col className={classes.colAction} /> <col className={classes.colAction} />
</colgroup> </colgroup>
<TableHead {attributes?.length > 0 && (
colSpan={numberOfColumns} <TableHead
disabled={disabled} colSpan={numberOfColumns}
dragRows disabled={disabled}
selected={selected} dragRows
items={attributes} selected={selected}
toggleAll={toggleAll} items={attributes}
toolbar={toolbar} toggleAll={toggleAll}
> toolbar={toolbar}
<TableCell className={classes.colName}> >
<FormattedMessage defaultMessage="Attribute name" /> <TableCell className={classes.colName}>
</TableCell> <FormattedMessage defaultMessage="Attribute name" />
<TableCell className={classes.colName}> </TableCell>
<FormattedMessage <TableCell className={classes.colName}>
defaultMessage="Slug" <FormattedMessage
description="attribute internal name" defaultMessage="Slug"
/> description="attribute internal name"
</TableCell> />
<TableCell /> </TableCell>
</TableHead> <TableCell />
</TableHead>
)}
<SortableTableBody onSortEnd={onAttributeReorder}> <SortableTableBody onSortEnd={onAttributeReorder}>
{renderCollection( {renderCollection(
attributes, attributes,