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
53f0f08e
Commit
53f0f08e
authored
Jan 10, 2019
by
Dominik Prokop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing TS and updating snapshot
parent
7819529d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
3 deletions
+21
-3
packages/grafana-ui/src/components/Select/IndicatorsContainer.tsx
+3
-0
packages/grafana-ui/src/components/Select/NoOptionsMessage.tsx
+4
-0
packages/grafana-ui/src/components/Select/PickerOption.test.tsx
+0
-2
packages/grafana-ui/src/components/Select/PickerOption.tsx
+3
-0
packages/grafana-ui/src/components/Select/Select.tsx
+5
-0
packages/grafana-ui/src/components/Select/__snapshots__/PickerOption.test.tsx.snap
+6
-1
No files found.
packages/grafana-ui/src/components/Select/IndicatorsContainer.tsx
View file @
53f0f08e
import
React
from
'react'
;
// Ignoring because I couldn't get @types/react-select work wih Torkel's fork
// @ts-ignore
import
{
components
}
from
'@torkelo/react-select'
;
export
const
IndicatorsContainer
=
(
props
:
any
)
=>
{
...
...
packages/grafana-ui/src/components/Select/NoOptionsMessage.tsx
View file @
53f0f08e
import
React
from
'react'
;
// Ignoring because I couldn't get @types/react-select work wih Torkel's fork
// @ts-ignore
import
{
components
}
from
'@torkelo/react-select'
;
// @ts-ignore
import
{
OptionProps
}
from
'@torkelo/react-select/lib/components/Option'
;
export
interface
Props
{
...
...
packages/grafana-ui/src/components/Select/PickerOption.test.tsx
View file @
53f0f08e
...
...
@@ -38,9 +38,7 @@ describe('PickerOption', () => {
<
PickerOption
{
...
model
}
data=
{
{
title
:
'Model title'
,
imgUrl
:
'url/to/avatar'
,
label
:
'User picker label'
,
}
}
/>
)
...
...
packages/grafana-ui/src/components/Select/PickerOption.tsx
View file @
53f0f08e
import
React
from
'react'
;
// Ignoring because I couldn't get @types/react-select work wih Torkel's fork
// @ts-ignore
import
{
components
}
from
'@torkelo/react-select'
;
import
{
OptionProps
}
from
'react-select/lib/components/Option'
;
...
...
packages/grafana-ui/src/components/Select/Select.tsx
View file @
53f0f08e
// Libraries
import
classNames
from
'classnames'
;
import
React
,
{
PureComponent
}
from
'react'
;
// Ignoring because I couldn't get @types/react-select work wih Torkel's fork
// @ts-ignore
import
{
default
as
ReactSelect
}
from
'@torkelo/react-select'
;
// @ts-ignore
import
{
default
as
ReactAsyncSelect
}
from
'@torkelo/react-select/lib/Async'
;
// @ts-ignore
import
{
components
}
from
'@torkelo/react-select'
;
// Components
...
...
p
ublic/app/core
/components/Select/__snapshots__/PickerOption.test.tsx.snap
→
p
ackages/grafana-ui/src
/components/Select/__snapshots__/PickerOption.test.tsx.snap
View file @
53f0f08e
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`PickerOption renders correctly 1`] = `
<div>
<div
id=""
onClick={[MockFunction]}
onMouseOver={[MockFunction]}
tabIndex={1}
>
<div
className="gf-form-select-box__desc-option"
>
...
...
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