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 = ...@@ -52,6 +52,7 @@ export type IconName =
| 'circle' | 'circle'
| 'arrow-up' | 'arrow-up'
| 'arrow-from-right' | 'arrow-from-right'
| 'arrow-from-left'
| 'keyboard' | 'keyboard'
| 'search' | 'search'
| 'chart-line' | 'chart-line'
...@@ -162,6 +163,7 @@ export const getAvailableIcons = (): IconName[] => [ ...@@ -162,6 +163,7 @@ export const getAvailableIcons = (): IconName[] => [
'circle', 'circle',
'arrow-up', 'arrow-up',
'arrow-from-right', 'arrow-from-right',
'arrow-from-left',
'keyboard', 'keyboard',
'search', 'search',
'chart-line', 'chart-line',
......
...@@ -9,7 +9,7 @@ export const SignIn: FC<any> = ({ url }) => { ...@@ -9,7 +9,7 @@ export const SignIn: FC<any> = ({ url }) => {
<div className="sidemenu-item"> <div className="sidemenu-item">
<a href={loginUrl} className="sidemenu-link" target="_self"> <a href={loginUrl} className="sidemenu-link" target="_self">
<span className="icon-circle sidemenu-icon"> <span className="icon-circle sidemenu-icon">
<Icon name="sign-in-alt" /> <Icon name="arrow-from-left" size="xl" />
</span> </span>
</a> </a>
<a href={loginUrl} target="_self"> <a href={loginUrl} target="_self">
......
...@@ -13,7 +13,8 @@ exports[`Render should render component 1`] = ` ...@@ -13,7 +13,8 @@ exports[`Render should render component 1`] = `
className="icon-circle sidemenu-icon" className="icon-circle sidemenu-icon"
> >
<Icon <Icon
name="sign-in-alt" name="arrow-from-left"
size="xl"
/> />
</span> </span>
</a> </a>
......
...@@ -180,9 +180,7 @@ export class ApiKeysPage extends PureComponent<Props, any> { ...@@ -180,9 +180,7 @@ export class ApiKeysPage extends PureComponent<Props, any> {
return ( return (
<SlideDown in={isAdding}> <SlideDown in={isAdding}>
<div className="cta-form"> <div className="cta-form">
<button className="cta-form__close btn btn-transparent" onClick={this.onToggleAdding}> <IconButton name="times" className="cta-form__close btn btn-transparent" onClick={this.onToggleAdding} />
<IconButton name="times" />
</button>
<h5>Add API Key</h5> <h5>Add API Key</h5>
<form className="gf-form-group" onSubmit={this.onAddApiKey}> <form className="gf-form-group" onSubmit={this.onAddApiKey}>
<div className="gf-form-inline"> <div className="gf-form-inline">
......
...@@ -49,14 +49,11 @@ exports[`Render should render CTA if there are no API keys 1`] = ` ...@@ -49,14 +49,11 @@ exports[`Render should render CTA if there are no API keys 1`] = `
<div <div
className="cta-form" className="cta-form"
> >
<button
className="cta-form__close btn btn-transparent"
onClick={[Function]}
>
<IconButton <IconButton
className="cta-form__close btn btn-transparent"
name="times" name="times"
onClick={[Function]}
/> />
</button>
<h5> <h5>
Add API Key Add API Key
</h5> </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