mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user