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
0b4d212b
Commit
0b4d212b
authored
Jan 09, 2019
by
Dominik Prokop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing TS errors and updating snapshot
parent
fae8ff57
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
packages/grafana-ui/src/components/Tooltip/Popper.tsx
+2
-2
packages/grafana-ui/src/components/Tooltip/PopperController.tsx
+2
-2
public/app/features/teams/__snapshots__/TeamGroupSync.test.tsx.snap
+4
-4
yarn.lock
+2
-2
No files found.
packages/grafana-ui/src/components/Tooltip/Popper.tsx
View file @
0b4d212b
import
React
,
{
PureComponent
}
from
'react'
;
import
React
,
{
PureComponent
}
from
'react'
;
import
*
as
PopperJS
from
'popper.js'
;
import
{
Manager
,
Popper
as
ReactPopper
}
from
'react-popper'
;
import
{
Portal
}
from
'@grafana/ui'
;
...
...
@@ -14,7 +14,7 @@ const defaultTransitionStyles = {
opacity
:
0
,
};
const
transitionStyles
=
{
const
transitionStyles
:
{[
key
:
string
]:
object
}
=
{
exited
:
{
opacity
:
0
},
entering
:
{
opacity
:
0
},
entered
:
{
opacity
:
1
},
...
...
packages/grafana-ui/src/components/Tooltip/PopperController.tsx
View file @
0b4d212b
...
...
@@ -50,10 +50,10 @@ class PopperController extends React.Component<Props, State> {
componentWillReceiveProps
(
nextProps
:
Props
)
{
if
(
nextProps
.
placement
&&
nextProps
.
placement
!==
this
.
state
.
placement
)
{
this
.
setState
(
prevState
=>
{
this
.
setState
(
(
prevState
:
State
)
=>
{
return
{
...
prevState
,
placement
:
nextProps
.
placement
,
placement
:
nextProps
.
placement
||
'auto'
,
};
});
}
...
...
public/app/features/teams/__snapshots__/TeamGroupSync.test.tsx.snap
View file @
0b4d212b
...
...
@@ -10,7 +10,7 @@ exports[`Render should render component 1`] = `
>
External group sync
</h3>
<
Tooltip
<
Component
content="Sync LDAP or OAuth groups with your Grafana teams."
placement="auto"
>
...
...
@@ -21,7 +21,7 @@ exports[`Render should render component 1`] = `
className="gicon gicon-question gicon--has-hover"
/>
</div>
</
Tooltip
>
</
Component
>
<div
className="page-action-bar__spacer"
/>
...
...
@@ -119,7 +119,7 @@ exports[`Render should render groups table 1`] = `
>
External group sync
</h3>
<
Tooltip
<
Component
content="Sync LDAP or OAuth groups with your Grafana teams."
placement="auto"
>
...
...
@@ -130,7 +130,7 @@ exports[`Render should render groups table 1`] = `
className="gicon gicon-question gicon--has-hover"
/>
</div>
</
Tooltip
>
</
Component
>
<div
className="page-action-bar__spacer"
/>
...
...
yarn.lock
View file @
0b4d212b
...
...
@@ -1112,7 +1112,7 @@
dependencies:
"@types/react" "*"
"@types/react@*", "@types/react@^16.1.0", "@types/react@^16.7.6":
"@types/react@*", "@types/react@
16.7.6", "@types/react@
^16.1.0", "@types/react@^16.7.6":
version "16.7.6"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.7.6.tgz#80e4bab0d0731ad3ae51f320c4b08bdca5f03040"
integrity sha512-QBUfzftr/8eg/q3ZRgf/GaDP6rTYc7ZNem+g4oZM38C9vXyV8AWRWaTQuW5yCoZTsfHrN7b3DeEiUnqH9SrnpA==
...
...
@@ -3175,7 +3175,7 @@ caniuse-api@^1.5.2:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"
caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
caniuse-db@
1.0.30000772, caniuse-db@
^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
version "1.0.30000772"
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000772.tgz#51aae891768286eade4a3d8319ea76d6a01b512b"
integrity sha1-UarokXaChureSj2DGep21qAbUSs=
...
...
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