This commit is contained in:
seb
2026-10-21 11:54:48 +02:00
parent 3dac143f1a
commit 5d7911e644

View File

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