Commit df60dbd7 by Ivana Huckova Committed by GitHub

@grafana/ui: Fix login icon (#23732)

* Fix sign in button

* Fix modal button in button
parent 1b8d669a
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment