mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +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:
@@ -67,30 +67,26 @@ export const CopyToClipboardButton = ({
|
||||
}: {
|
||||
data?: Record<string, any>;
|
||||
columns?: string[];
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<CopyToClipboard
|
||||
text={
|
||||
data && columns ? prepareCopyToClipboardTabularData(data, columns) : ''
|
||||
}
|
||||
wrapped={false}
|
||||
copyNode={
|
||||
<Icons.CopyOutlined
|
||||
iconColor={theme.colors.grayscale.base}
|
||||
iconSize="l"
|
||||
aria-label={t('Copy')}
|
||||
role="button"
|
||||
css={css`
|
||||
&.anticon > * {
|
||||
line-height: 0;
|
||||
}
|
||||
`}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
}) => (
|
||||
<CopyToClipboard
|
||||
text={
|
||||
data && columns ? prepareCopyToClipboardTabularData(data, columns) : ''
|
||||
}
|
||||
wrapped={false}
|
||||
copyNode={
|
||||
<Icons.CopyOutlined
|
||||
iconSize="l"
|
||||
aria-label={t('Copy')}
|
||||
role="button"
|
||||
css={css`
|
||||
&.anticon > * {
|
||||
line-height: 0;
|
||||
}
|
||||
`}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
);
|
||||
|
||||
export const FilterInput = ({
|
||||
onChangeHandler,
|
||||
@@ -112,7 +108,7 @@ export const FilterInput = ({
|
||||
const debouncedChangeHandler = debounce(onChangeHandler, SLOW_DEBOUNCE);
|
||||
return (
|
||||
<Input
|
||||
prefix={<Icons.Search iconColor={theme.colors.grayscale.base} />}
|
||||
prefix={<Icons.SearchOutlined iconSize="l" />}
|
||||
placeholder={t('Search')}
|
||||
onChange={(event: any) => {
|
||||
const filterText = event.target.value;
|
||||
|
||||
Reference in New Issue
Block a user