Skip to content

Commit 4ddb113

Browse files
Lukas SiatkaEstrax
Lukas Siatka
authored andcommitted
Explore: updates responsive button to pass all the div element props
1 parent 013179e commit 4ddb113

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

public/app/features/explore/ResponsiveButton.tsx

+2-12
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,10 @@ export const ResponsiveButton = forwardRef<HTMLDivElement, Props>((props, ref) =
2525
};
2626

2727
props = { ...defaultProps, ...props };
28-
const {
29-
title,
30-
onClick,
31-
buttonClassName,
32-
iconClassName,
33-
splitted,
34-
iconSide,
35-
disabled,
36-
onMouseEnter,
37-
onMouseLeave,
38-
} = props;
28+
const { title, onClick, buttonClassName, iconClassName, splitted, iconSide, disabled, ...divElementProps } = props;
3929

4030
return (
41-
<div ref={ref} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>
31+
<div ref={ref} {...divElementProps}>
4232
<button
4333
className={`btn navbar-button ${buttonClassName ? buttonClassName : ''}`}
4434
onClick={onClick}

0 commit comments

Comments
 (0)