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

@@ -17,11 +17,11 @@
* under the License.
*/
import {
styled,
t,
useTheme,
getClientErrorObject,
SupersetClient,
css,
} from '@superset-ui/core';
import Button from 'src/components/Button';
import Icons from 'src/components/Icons';
@@ -36,16 +36,6 @@ interface ShareSqlLabQueryProps {
addDangerToast: (msg: string) => void;
}
const StyledIcon = styled(Icons.Link)`
&:first-of-type {
margin: 0;
display: flex;
svg {
margin: 0;
}
}
`;
const ShareSqlLabQuery = ({
queryEditorId,
addDangerToast,
@@ -85,8 +75,19 @@ const ShareSqlLabQuery = ({
const buildButton = () => {
const tooltip = t('Copy query link to your clipboard');
return (
<Button buttonSize="small" tooltip={tooltip}>
<StyledIcon iconColor={theme.colors.primary.base} iconSize="xl" />
<Button
buttonSize="small"
tooltip={tooltip}
css={css`
span > :first-of-type {
margin-right: 0;
}
`}
>
<Icons.LinkOutlined
iconColor={theme.colors.primary.base}
iconSize="m"
/>
{t('Copy link')}
</Button>
);