mirror of
https://github.com/apache/superset.git
synced 2026-06-01 05:39:17 +00:00
chore: Replaces Icon with Icons component - iteration 1 (#14469)
This commit is contained in:
committed by
GitHub
parent
4e6169e0f9
commit
9deb7aa3c1
@@ -26,7 +26,7 @@ import {
|
||||
sqlaAutoGeneratedMetricNameRegex,
|
||||
druidAutoGeneratedMetricRegex,
|
||||
} from 'src/explore/constants';
|
||||
import Icon from 'src/components/Icon';
|
||||
import Icons from 'src/components/Icons';
|
||||
import {
|
||||
AddIconButton,
|
||||
AddControlLabel,
|
||||
@@ -386,11 +386,9 @@ class MetricsControl extends React.PureComponent {
|
||||
disabled={this.isAddNewMetricDisabled()}
|
||||
data-test="add-metric-button"
|
||||
>
|
||||
<Icon
|
||||
name="plus-large"
|
||||
width={theme.gridUnit * 3}
|
||||
height={theme.gridUnit * 3}
|
||||
color={theme.colors.grayscale.light5}
|
||||
<Icons.PlusLarge
|
||||
iconSize="s"
|
||||
iconColor={theme.colors.grayscale.light5}
|
||||
/>
|
||||
</AddIconButton>,
|
||||
)}
|
||||
@@ -402,10 +400,7 @@ class MetricsControl extends React.PureComponent {
|
||||
)
|
||||
: this.addNewMetricPopoverTrigger(
|
||||
<AddControlLabel>
|
||||
<Icon
|
||||
name="plus-small"
|
||||
color={theme.colors.grayscale.light1}
|
||||
/>
|
||||
<Icons.PlusSmall iconColor={theme.colors.grayscale.light1} />
|
||||
{t('Add metric')}
|
||||
</AddControlLabel>,
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user