mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@grafana/ui: Fix login icon (#23732)
* Fix sign in button * Fix modal button in button
This commit is contained in:
parent
1b8d669ac0
commit
df60dbd749
@ -52,6 +52,7 @@ export type IconName =
|
||||
| 'circle'
|
||||
| 'arrow-up'
|
||||
| 'arrow-from-right'
|
||||
| 'arrow-from-left'
|
||||
| 'keyboard'
|
||||
| 'search'
|
||||
| 'chart-line'
|
||||
@ -162,6 +163,7 @@ export const getAvailableIcons = (): IconName[] => [
|
||||
'circle',
|
||||
'arrow-up',
|
||||
'arrow-from-right',
|
||||
'arrow-from-left',
|
||||
'keyboard',
|
||||
'search',
|
||||
'chart-line',
|
||||
|
@ -9,7 +9,7 @@ export const SignIn: FC<any> = ({ url }) => {
|
||||
<div className="sidemenu-item">
|
||||
<a href={loginUrl} className="sidemenu-link" target="_self">
|
||||
<span className="icon-circle sidemenu-icon">
|
||||
<Icon name="sign-in-alt" />
|
||||
<Icon name="arrow-from-left" size="xl" />
|
||||
</span>
|
||||
</a>
|
||||
<a href={loginUrl} target="_self">
|
||||
|
@ -13,7 +13,8 @@ exports[`Render should render component 1`] = `
|
||||
className="icon-circle sidemenu-icon"
|
||||
>
|
||||
<Icon
|
||||
name="sign-in-alt"
|
||||
name="arrow-from-left"
|
||||
size="xl"
|
||||
/>
|
||||
</span>
|
||||
</a>
|
||||
|
@ -180,9 +180,7 @@ export class ApiKeysPage extends PureComponent<Props, any> {
|
||||
return (
|
||||
<SlideDown in={isAdding}>
|
||||
<div className="cta-form">
|
||||
<button className="cta-form__close btn btn-transparent" onClick={this.onToggleAdding}>
|
||||
<IconButton name="times" />
|
||||
</button>
|
||||
<IconButton name="times" className="cta-form__close btn btn-transparent" onClick={this.onToggleAdding} />
|
||||
<h5>Add API Key</h5>
|
||||
<form className="gf-form-group" onSubmit={this.onAddApiKey}>
|
||||
<div className="gf-form-inline">
|
||||
|
@ -49,14 +49,11 @@ exports[`Render should render CTA if there are no API keys 1`] = `
|
||||
<div
|
||||
className="cta-form"
|
||||
>
|
||||
<button
|
||||
<IconButton
|
||||
className="cta-form__close btn btn-transparent"
|
||||
name="times"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<IconButton
|
||||
name="times"
|
||||
/>
|
||||
</button>
|
||||
/>
|
||||
<h5>
|
||||
Add API Key
|
||||
</h5>
|
||||
|
Loading…
Reference in New Issue
Block a user