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

@@ -16,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
// eslint-disable-next-line no-restricted-imports
import { PlusOutlined } from '@ant-design/icons'; // TODO: Use src/components/Icons
import Icons from 'src/components/Icons';
import { css, styled, t } from '@superset-ui/core';
// eslint-disable-next-line no-restricted-imports
import { Button, Tree } from 'antd'; // TODO: Remove antd
@@ -136,7 +135,7 @@ export const FlatLayerTree = forwardRef<HTMLDivElement, FlatLayerTreeProps>(
onClick={onAddLayer}
size="small"
type="dashed"
icon={<PlusOutlined />}
icon={<Icons.PlusOutlined iconSize="m" />}
>
{addLayerLabel}
</Button>

View File

@@ -16,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
// eslint-disable-next-line no-restricted-imports
import { CloseOutlined, RightOutlined } from '@ant-design/icons'; // TODO: Use src/components/Icons
import Icons from 'src/components/Icons';
// eslint-disable-next-line no-restricted-imports
import { Button, Tag } from 'antd'; // TODO: Remove antd
import { FC } from 'react';
@@ -41,7 +40,7 @@ export const LayerTreeItem: FC<LayerTreeItemProps> = ({
<Tag className={className}>
<Button
className="layer-tree-item-close"
icon={<CloseOutlined />}
icon={<Icons.CloseOutlined iconSize="m" />}
onClick={onCloseTag}
size="small"
/>
@@ -63,7 +62,7 @@ export const LayerTreeItem: FC<LayerTreeItemProps> = ({
</span>
<Button
className="layer-tree-item-edit"
icon={<RightOutlined />}
icon={<Icons.RightOutlined />}
onClick={onEditTag}
size="small"
/>