mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +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:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user