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
4ddb113b
Commit
4ddb113b
authored
Nov 08, 2019
by
Lukas Siatka
Committed by
Lukas Siatka
Nov 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explore: updates responsive button to pass all the div element props
parent
013179ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
public/app/features/explore/ResponsiveButton.tsx
+2
-12
No files found.
public/app/features/explore/ResponsiveButton.tsx
View file @
4ddb113b
...
@@ -25,20 +25,10 @@ export const ResponsiveButton = forwardRef<HTMLDivElement, Props>((props, ref) =
...
@@ -25,20 +25,10 @@ export const ResponsiveButton = forwardRef<HTMLDivElement, Props>((props, ref) =
};
};
props
=
{
...
defaultProps
,
...
props
};
props
=
{
...
defaultProps
,
...
props
};
const
{
const
{
title
,
onClick
,
buttonClassName
,
iconClassName
,
splitted
,
iconSide
,
disabled
,
...
divElementProps
}
=
props
;
title
,
onClick
,
buttonClassName
,
iconClassName
,
splitted
,
iconSide
,
disabled
,
onMouseEnter
,
onMouseLeave
,
}
=
props
;
return
(
return
(
<
div
ref=
{
ref
}
onMouseEnter=
{
onMouseEnter
}
onMouseLeave=
{
onMouseLeave
}
>
<
div
ref=
{
ref
}
{
...
divElementProps
}
>
<
button
<
button
className=
{
`btn navbar-button ${buttonClassName ? buttonClassName : ''}`
}
className=
{
`btn navbar-button ${buttonClassName ? buttonClassName : ''}`
}
onClick=
{
onClick
}
onClick=
{
onClick
}
...
...
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