mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 14:02:05 +08:00
@grafana/ui: Replace various icons using Icon component (#23442)
* Replace icons in dashboard and settings * Replace icons in alerting * Update batch of icons * Implement icons accross various files * Style updates * Search: Fix recent and starred icons * Update styling and details * Replace new icon created by unicons * Fix e2e test, styling * Minor styling updates Co-authored-by: Clarity-89 <homes89@ukr.net>
This commit is contained in:
@ -4,6 +4,7 @@ import uniqueId from 'lodash/uniqueId';
|
||||
import { DataSourceSettings } from '@grafana/data';
|
||||
import { Button } from '../Button';
|
||||
import { FormField } from '../FormField/FormField';
|
||||
import { Icon } from '../Icon/Icon';
|
||||
import { SecretFormField } from '../SecretFormField/SecretFormField';
|
||||
import { stylesFactory } from '../../themes';
|
||||
|
||||
@ -77,7 +78,7 @@ const CustomHeaderRow: React.FC<CustomHeaderRowProps> = ({ header, onBlur, onCha
|
||||
onBlur={onBlur}
|
||||
/>
|
||||
<Button variant="secondary" size="xs" onClick={_e => onRemove(header.id)}>
|
||||
<i className="fa fa-trash" />
|
||||
<Icon name="trash-alt" />
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user