refactor(Icons): Replaces custom icons with Ant Design 5 icons (#32112)

Replace custom icons with Ant Design 5 icons to standardize the icon
This commit is contained in:
Enzo Martellucci
2025-03-18 22:22:41 +01:00
committed by GitHub
parent 9e3052968b
commit ce6d5f5551
341 changed files with 2222 additions and 3999 deletions

View File

@@ -19,8 +19,7 @@
import { useState } from 'react';
import { Tooltip } from 'src/components/Tooltip';
import Modal from 'src/components/Modal';
// eslint-disable-next-line no-restricted-imports
import { ExclamationCircleOutlined, WarningOutlined } from '@ant-design/icons'; // TODO: Use src/components/Icons
import Icons from 'src/components/Icons';
import Alert from 'src/components/Alert';
import { t, useTheme } from '@superset-ui/core';
@@ -65,7 +64,11 @@ const ErrorAlert: React.FC<ErrorAlertProps> = ({
const theme = useTheme();
const renderTrigger = () => {
const icon =
type === 'warning' ? <WarningOutlined /> : <ExclamationCircleOutlined />;
type === 'warning' ? (
<Icons.WarningOutlined />
) : (
<Icons.ExclamationCircleOutlined />
);
const color =
type === 'warning' ? theme.colors.warning.base : theme.colors.error.base;
return (