Migrate Bootstrap Alert to AntD (#12101) (#12122)

This commit is contained in:
Michael S. Molina
2021-02-22 01:50:18 -03:00
committed by GitHub
parent 7ee8d114d2
commit 42ab57850d
31 changed files with 573 additions and 301 deletions

View File

@@ -18,7 +18,7 @@
*/
import PropTypes from 'prop-types';
import React from 'react';
import { Alert } from 'react-bootstrap';
import Alert from 'src/components/Alert';
import { styled, logging } from '@superset-ui/core';
import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags';
@@ -193,9 +193,11 @@ class Chart extends React.PureComponent {
}
if (errorMessage) {
return (
<Alert data-test="alert-warning" bsStyle="warning">
{errorMessage}
</Alert>
<Alert
data-test="alert-warning"
message={errorMessage}
type="warning"
/>
);
}