Skip to content

Commit

Permalink
added loadingbar and incorporated into the filterabledatatable
Browse files Browse the repository at this point in the history
remove CBIGR override comments

added typescripting

trying to pass validation

passing checks

added progress to proptypes

Update jsx/LoadingBar.tsx

Co-authored-by: Maxime Mulder <[email protected]>

updated to use ProgressBar instead of LoadingBar

removed LoadingBar

remove accidental space

remove swap file
  • Loading branch information
ridz1208 committed Oct 31, 2024
1 parent 2d91a56 commit c0f5c57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jsx/FilterableDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
import Panel from 'jsx/Panel';
import DataTable from 'jsx/DataTable';
import Filter from 'jsx/Filter';
import ProgressBar from 'jsx/ProgressBar';

/**
* FilterableDataTable component.
Expand Down Expand Up @@ -149,7 +150,10 @@ class FilterableDataTable extends Component {
/>
);

const dataTable = (
const {progress} = this.props;
const dataTable = !isNaN(progress) && progress < 100 ? (
<ProgressBar value={progress}/>
) : (
<DataTable
data={this.props.data}
fields={this.props.fields}
Expand Down Expand Up @@ -191,6 +195,7 @@ FilterableDataTable.propTypes = {
updateFilterCallback: PropTypes.func,
noDynamicTable: PropTypes.bool,
loading: PropTypes.element,
progress: PropTypes.number,
getMappedCell: PropTypes.func,
folder: PropTypes.element,
nullTableShow: PropTypes.element,
Expand Down

0 comments on commit c0f5c57

Please sign in to comment.