mirror of
https://github.com/grafana/grafana.git
synced 2025-08-14 10:50:38 +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:
@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import { MetricDescriptor } from '../types';
|
||||
import { Icon } from '@grafana/ui';
|
||||
|
||||
export interface Props {
|
||||
rawQuery: string;
|
||||
@ -39,14 +40,14 @@ export class Help extends React.Component<Props, State> {
|
||||
<div className="gf-form-inline">
|
||||
<div className="gf-form" onClick={this.onHelpClicked}>
|
||||
<label className="gf-form-label query-keyword pointer">
|
||||
Show Help <i className={`fa fa-caret-${displayHelp ? 'down' : 'right'}`} />
|
||||
Show Help <Icon name={displayHelp ? 'angle-down' : 'angle-right'} />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{rawQuery && (
|
||||
<div className="gf-form" onClick={this.onRawQueryClicked}>
|
||||
<label className="gf-form-label query-keyword">
|
||||
Raw Query <i className={`fa fa-caret-${displaRawQuery ? 'down' : 'right'}`} ng-show="ctrl.showHelp" />
|
||||
Raw Query <Icon name={displaRawQuery ? 'angle-down' : 'angle-right'} ng-show="ctrl.showHelp" />
|
||||
</label>
|
||||
</div>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user