ywana-core8 0.0.203 → 0.0.204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.203",
3
+ "version": "0.0.204",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
package/src/html/table.js CHANGED
@@ -76,7 +76,7 @@ export const DataTable = (props) => {
76
76
  <tr>
77
77
  {columns.map(({ id, label, type, sortable }) => {
78
78
  const sort = sortDir[id] ? sortDir[id] : null
79
- const colspan = type === TYPES.ENTITY ? : 1
79
+ const colspan = type === TYPES.ENTITY ? 3 : 1
80
80
  return (
81
81
  <th rowSpan={2} colSpan={colspan}>
82
82
  {id === "checked" ? <CheckBox onChange={checkAll} /> : <Text key={`th_${id}`}>{label}</Text>}
@@ -90,7 +90,7 @@ export const DataTable = (props) => {
90
90
  {
91
91
  columns
92
92
  .filter(({ type }) => type === TYPES.ENTITY)
93
- .map(({ label }) => <th>{label}</th>)
93
+ .map(({ label }) => [<th>{label}</th>,<th>{label}</th>,<th>{label}</th>])
94
94
  }
95
95
  </tr>
96
96
  </thead>