mirror of
https://github.com/apache/superset.git
synced 2026-05-10 18:35:40 +00:00
refactor: change xsm Icons and dnd icons to new dynamic icons (#14419)
* intial commit * fix test and add more icons * fix lint
This commit is contained in:
committed by
GitHub
parent
5f7722cb36
commit
3eef38f309
@@ -21,7 +21,7 @@ import { useDrag, useDrop, DropTargetMonitor } from 'react-dnd';
|
||||
import { styled, t, useTheme } from '@superset-ui/core';
|
||||
import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls';
|
||||
import { Tooltip } from 'src/components/Tooltip';
|
||||
import Icon from 'src/components/Icon';
|
||||
import Icons from 'src/components/Icons';
|
||||
import { savedMetricType } from 'src/explore/components/controls/MetricControl/types';
|
||||
import AdhocMetric from 'src/explore/components/controls/MetricControl/AdhocMetric';
|
||||
import { StyledMetricOption } from '../../optionRenderers';
|
||||
@@ -260,10 +260,10 @@ export const OptionControlLabel = ({
|
||||
data-test="remove-control-button"
|
||||
onClick={onRemove}
|
||||
>
|
||||
<Icon name="x-small" color={theme.colors.grayscale.light1} />
|
||||
<Icons.XSmall iconColor={theme.colors.grayscale.light1} />
|
||||
</CloseContainer>
|
||||
<Label data-test="control-label">
|
||||
{isFunction && <Icon name="function" viewBox="0 0 16 11" />}
|
||||
{isFunction && <Icons.FunctionX viewBox="0 0 16 11" iconSize="l" />}
|
||||
{getLabelContent()}
|
||||
</Label>
|
||||
{isExtra && (
|
||||
@@ -279,7 +279,7 @@ export const OptionControlLabel = ({
|
||||
)}
|
||||
{withCaret && (
|
||||
<CaretContainer>
|
||||
<Icon name="caret-right" color={theme.colors.grayscale.light1} />
|
||||
<Icons.CaretRight iconColor={theme.colors.grayscale.light1} />
|
||||
</CaretContainer>
|
||||
)}
|
||||
</OptionControlContainer>
|
||||
|
||||
Reference in New Issue
Block a user