diff --git a/client/src/components/Table/Table.jsx b/client/src/components/Table/Table.jsx index e6308c282..0d8ab5841 100644 --- a/client/src/components/Table/Table.jsx +++ b/client/src/components/Table/Table.jsx @@ -43,7 +43,8 @@ class Table extends Component { }; renderHeader() { - const { has2Headers, firstHeader, columns, actions, data } = this.props; + const { has2Headers, firstHeader, columns, actions, data, loading, updateCheckbox, isChecked } = + this.props; return ( <> {has2Headers && ( @@ -74,7 +75,19 @@ class Table extends Component { return (
- {column.colName} + {!loading && data && data.length > 0 && column.id === 'checkboxes' ? ( + <> + { + updateCheckbox(e); + }} + /> + + ) : ( + column.colName + )} {column.sortable && ( { + this.setState({ isAllTopicDataSelected: isAllTopicDataSelected, messages: messages }); + }; + + _renderDownloadFormat = isChecked => { + const { downloadOptions } = this.state; + + let renderedOptions = []; + for (let option of downloadOptions) { + renderedOptions.push( + + this.setState({ downloadFormat: option }, () => { + this._handleDownloadAll(option); + }) + } + > +