chore: Convert direct uses of antd icons to 'Icons' component (#22516)

This commit is contained in:
Cody Leff
2023-01-23 14:42:27 -07:00
committed by GitHub
parent 3084763eb7
commit 2a30bbce1a
19 changed files with 125 additions and 82 deletions

View File

@@ -30,12 +30,13 @@ import { DndMetricSelect } from 'src/explore/components/controls/DndColumnSelect
import { AGGREGATES } from 'src/explore/constants';
import { EXPRESSION_TYPES } from '../MetricControl/AdhocMetric';
jest.mock(
'src/components/Icons/Icon',
() =>
({ fileName }: { fileName: string }) =>
<span role="img" aria-label={fileName.replace('_', '-')} />,
);
jest.mock('src/components/Icons/Icon', () => ({
__esModule: true,
default: ({ fileName }: { fileName: string }) => (
<span role="img" aria-label={fileName.replace('_', '-')} />
),
StyledIcon: () => <span />,
}));
const defaultProps = {
savedMetrics: [