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) = ...@@ -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}
......
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