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
3908e64e
Commit
3908e64e
authored
Nov 27, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
react-panel: Use correct type for children prop to avoid the use of fragments <></>
parent
13d0a117
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
public/app/core/components/CopyToClipboard/CopyToClipboard.tsx
+2
-2
public/app/features/dashboard/dashgrid/QueryInspector.tsx
+1
-3
No files found.
public/app/core/components/CopyToClipboard/CopyToClipboard.tsx
View file @
3908e64e
import
React
,
{
PureComponent
}
from
'react'
;
import
React
,
{
PureComponent
,
ReactNode
}
from
'react'
;
import
ClipboardJS
from
'clipboard'
;
interface
Props
{
...
...
@@ -7,7 +7,7 @@ interface Props {
onSuccess
?:
(
evt
:
any
)
=>
void
;
onError
?:
(
evt
:
any
)
=>
void
;
className
?:
string
;
children
?:
JSX
.
Element
|
string
;
children
?:
ReactNode
;
}
export
class
CopyToClipboard
extends
PureComponent
<
Props
>
{
...
...
public/app/features/dashboard/dashgrid/QueryInspector.tsx
View file @
3908e64e
...
...
@@ -211,9 +211,7 @@ export class QueryInspector extends PureComponent<Props, State> {
text=
{
this
.
getTextForClipboard
}
onSuccess=
{
this
.
onClipboardSuccess
}
>
<>
<
i
className=
"fa fa-clipboard"
/>
Copy to Clipboard
</>
<
i
className=
"fa fa-clipboard"
/>
Copy to Clipboard
</
CopyToClipboard
>
</
div
>
...
...
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