u
This commit is contained in:
@@ -158,15 +158,14 @@ class RecordList extends Component {
|
|||||||
sx={{ cursor: onEdit ? 'pointer' : undefined }}
|
sx={{ cursor: onEdit ? 'pointer' : undefined }}
|
||||||
onClick={() => this.handleRowClick(row)}
|
onClick={() => this.handleRowClick(row)}
|
||||||
>
|
>
|
||||||
{columns.map((col) => (
|
|
||||||
<TableCell
|
<TableCell
|
||||||
key={col.key}
|
key={col.key}
|
||||||
align={col.align}
|
align={col.align}
|
||||||
padding={col.padding}
|
padding={col.padding}
|
||||||
|
sx={col.mono || col.key === 'number' || col.key === 'sku' ? { fontFamily: 'monospace' } : undefined}
|
||||||
>
|
>
|
||||||
{col.render ? col.render(row) : row[col.key]}
|
{col.render ? col.render(row) : row[col.key]}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
))}
|
|
||||||
{hasActions ? (
|
{hasActions ? (
|
||||||
<TableCell
|
<TableCell
|
||||||
padding="checkbox"
|
padding="checkbox"
|
||||||
|
|||||||
Reference in New Issue
Block a user