Commit 4ddb113b by Lukas Siatka Committed by Lukas Siatka

Explore: updates responsive button to pass all the div element props

parent 013179ee
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment