ywana-core8 0.0.896 → 0.0.897
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
@@ -183,6 +183,11 @@ export const FilesTableView = (props) => {
|
|
183
183
|
return selected === id
|
184
184
|
}
|
185
185
|
|
186
|
+
function select(row) {
|
187
|
+
console.log(id)
|
188
|
+
if (onSelect) onSelect(row.id)
|
189
|
+
}
|
190
|
+
|
186
191
|
const table = {
|
187
192
|
columns: columns ? columns : [
|
188
193
|
{ id: "icon", type: "ICON" },
|
@@ -194,7 +199,7 @@ export const FilesTableView = (props) => {
|
|
194
199
|
|
195
200
|
return (
|
196
201
|
<div className="files-table">
|
197
|
-
<DataTable {...table} />
|
202
|
+
<DataTable {...table} onRowSelection={select}/>
|
198
203
|
</div>
|
199
204
|
)
|
200
205
|
}
|