Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e932d5bb
Unverified
Commit
e932d5bb
authored
Feb 18, 2021
by
Alex Khomenko
Committed by
GitHub
Feb 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grafana-UI: Update tooltip type (#31310)
parent
04cd9634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
packages/grafana-ui/src/components/SecretFormField/SecretFormField.tsx
+3
-2
No files found.
packages/grafana-ui/src/components/SecretFormField/SecretFormField.tsx
View file @
e932d5bb
...
@@ -3,6 +3,7 @@ import React, { InputHTMLAttributes, FunctionComponent } from 'react';
...
@@ -3,6 +3,7 @@ import React, { InputHTMLAttributes, FunctionComponent } from 'react';
import
{
FormField
}
from
'../FormField/FormField'
;
import
{
FormField
}
from
'../FormField/FormField'
;
import
{
Button
}
from
'../Button/Button'
;
import
{
Button
}
from
'../Button/Button'
;
import
{
css
,
cx
}
from
'emotion'
;
import
{
css
,
cx
}
from
'emotion'
;
import
{
PopoverContent
}
from
'../Tooltip/Tooltip'
;
export
interface
Props
extends
Omit
<
InputHTMLAttributes
<
HTMLInputElement
>
,
'onReset'
>
{
export
interface
Props
extends
Omit
<
InputHTMLAttributes
<
HTMLInputElement
>
,
'onReset'
>
{
// Function to use when reset is clicked. Means you have to reset the input value yourself as this is uncontrolled
// Function to use when reset is clicked. Means you have to reset the input value yourself as this is uncontrolled
...
@@ -11,7 +12,7 @@ export interface Props extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onRe
...
@@ -11,7 +12,7 @@ export interface Props extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onRe
isConfigured
:
boolean
;
isConfigured
:
boolean
;
label
?:
string
;
label
?:
string
;
tooltip
?:
string
;
tooltip
?:
PopoverContent
;
labelWidth
?:
number
;
labelWidth
?:
number
;
inputWidth
?:
number
;
inputWidth
?:
number
;
// Placeholder of the input field when in non configured state.
// Placeholder of the input field when in non configured state.
...
@@ -50,7 +51,7 @@ export const SecretFormField: FunctionComponent<Props> = ({
...
@@ -50,7 +51,7 @@ export const SecretFormField: FunctionComponent<Props> = ({
return
(
return
(
<
FormField
<
FormField
label=
{
label
!
}
label=
{
label
!
}
tooltip=
{
tooltip
!
}
tooltip=
{
tooltip
}
labelWidth=
{
labelWidth
}
labelWidth=
{
labelWidth
}
inputEl=
{
inputEl=
{
isConfigured
?
(
isConfigured
?
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment