1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

perf: Usa correttamente il componente TableColumn

This commit is contained in:
Maicol Battistini
2021-11-23 21:35:14 +01:00
parent e665491098
commit 203b79d2d9

View File

@ -21,10 +21,7 @@ export default class DataTable extends Component {
<table className="mdc-data-table__table" aria-label={this.attrs.get('aria-label')}>
<thead>
<tr className="mdc-data-table__header-row">
{this.attrs.has('checkable')
&& <TableColumn type="checkbox">
<mwc-checkbox/>
</TableColumn>}
{this.attrs.has('checkable') && <TableColumn type="checkbox"/>}
{this.tableColumns(vnode.children)}
</tr>
</thead>