mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Datatable - replace SPACE with - in the datatable-item-* className
This commit is contained in:
parent
40903a6320
commit
77733d2b81
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ const DatatableCell = ({ column, document, currentUser }) => {
|
||||||
const Component = column.component || Components[column.componentName] || Components.DatatableDefaultCell;
|
const Component = column.component || Components[column.componentName] || Components.DatatableDefaultCell;
|
||||||
const columnName = column.name || column;
|
const columnName = column.name || column;
|
||||||
return (
|
return (
|
||||||
<td className={`datatable-item-${columnName.toLowerCase()}`}><Component column={column} document={document} currentUser={currentUser} /></td>
|
<td className={`datatable-item-${columnName.toLowerCase().replace(' ', '-')}`}><Component column={column} document={document} currentUser={currentUser} /></td>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
registerComponent('DatatableCell', DatatableCell);
|
registerComponent('DatatableCell', DatatableCell);
|
||||||
|
|
Loading…
Add table
Reference in a new issue