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
a29d80df
Commit
a29d80df
authored
Oct 08, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update typescript notifications #13425
parent
2d65845b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
public/app/core/components/Picker/DescriptionOption.tsx
+3
-5
public/app/core/components/Picker/PickerOption.test.tsx
+14
-0
No files found.
public/app/core/components/Picker/DescriptionOption.tsx
View file @
a29d80df
...
@@ -2,14 +2,12 @@ import React from 'react';
...
@@ -2,14 +2,12 @@ import React from 'react';
import
{
components
}
from
'react-select'
;
import
{
components
}
from
'react-select'
;
import
{
OptionProps
}
from
'react-select/lib/components/Option'
;
import
{
OptionProps
}
from
'react-select/lib/components/Option'
;
export
interface
Props
{
// https://github.com/JedWatson/react-select/issues/3038
children
:
Element
;
interface
ExtendedOptionProps
extends
OptionProps
<
any
>
{
isSelected
:
boolean
;
data
:
any
;
data
:
any
;
getStyles
:
any
;
}
}
export
const
Option
=
(
props
:
OptionProps
<
any
>
)
=>
{
export
const
Option
=
(
props
:
ExtendedOptionProps
)
=>
{
const
{
children
,
isSelected
,
data
}
=
props
;
const
{
children
,
isSelected
,
data
}
=
props
;
return
(
return
(
<
components
.
Option
{
...
props
}
>
<
components
.
Option
{
...
props
}
>
...
...
public/app/core/components/Picker/PickerOption.test.tsx
View file @
a29d80df
...
@@ -7,6 +7,20 @@ const model = {
...
@@ -7,6 +7,20 @@ const model = {
clearValue
:
jest
.
fn
(),
clearValue
:
jest
.
fn
(),
onSelect
:
jest
.
fn
(),
onSelect
:
jest
.
fn
(),
getStyles
:
jest
.
fn
(),
getStyles
:
jest
.
fn
(),
getValue
:
jest
.
fn
(),
hasValue
:
true
,
isMulti
:
false
,
options
:
[],
selectOption
:
jest
.
fn
(),
selectProps
:
{},
setValue
:
jest
.
fn
(),
isDisabled
:
false
,
isFocused
:
false
,
isSelected
:
false
,
innerRef
:
null
,
innerProps
:
null
,
label
:
'Option label'
,
type
:
null
,
children
:
'Model title'
,
children
:
'Model title'
,
data
:
{
data
:
{
title
:
'Model title'
,
title
:
'Model title'
,
...
...
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