mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: updates responsive button to pass all the div element props
This commit is contained in:
parent
013179eebc
commit
4ddb113b79
@ -25,20 +25,10 @@ export const ResponsiveButton = forwardRef<HTMLDivElement, Props>((props, ref) =
|
||||
};
|
||||
|
||||
props = { ...defaultProps, ...props };
|
||||
const {
|
||||
title,
|
||||
onClick,
|
||||
buttonClassName,
|
||||
iconClassName,
|
||||
splitted,
|
||||
iconSide,
|
||||
disabled,
|
||||
onMouseEnter,
|
||||
onMouseLeave,
|
||||
} = props;
|
||||
const { title, onClick, buttonClassName, iconClassName, splitted, iconSide, disabled, ...divElementProps } = props;
|
||||
|
||||
return (
|
||||
<div ref={ref} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>
|
||||
<div ref={ref} {...divElementProps}>
|
||||
<button
|
||||
className={`btn navbar-button ${buttonClassName ? buttonClassName : ''}`}
|
||||
onClick={onClick}
|
||||
|
Loading…
Reference in New Issue
Block a user