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