mirror of
https://github.com/apache/superset.git
synced 2026-04-28 20:44:24 +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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user