refactor: Move ProgressBar to Antd (#11875)

* Move ProgressBar to Antd

* Remove trailing space

* Fix linting issues

* Export enhanced Progress only
This commit is contained in:
Geido
2020-12-03 23:28:06 +02:00
committed by GitHub
parent 54bf70733f
commit 5b1939802d
6 changed files with 69 additions and 10 deletions

View File

@@ -19,7 +19,8 @@
import React, { useMemo } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { ProgressBar, Well } from 'react-bootstrap';
import { Well } from 'react-bootstrap';
import ProgressBar from 'src/common/components/ProgressBar';
import Label from 'src/components/Label';
import { t } from '@superset-ui/core';
@@ -169,11 +170,7 @@ const QueryTable = props => {
q.output = [schemaUsed, q.tempTable].filter(v => v).join('.');
}
q.progress = (
<ProgressBar
striped
now={q.progress}
label={`${q.progress.toFixed(0)}%`}
/>
<ProgressBar percent={parseInt(q.progress.toFixed(0), 10)} striped />
);
let errorTooltip;
if (q.errorMessage) {