1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 01:08:27 +00:00

Add mouse+focus events to Button

This commit is contained in:
Vasek Mlejnsky 2018-09-04 14:17:51 +02:00
parent 30f63622ae
commit 647ee89991

View File

@ -117,6 +117,9 @@ const Button = ({
className,
icon,
onClick = () => { },
onMouseEnter,
onMouseLeave,
onFocus,
isDisabled = false,
isWhite = false,
isWebUsb = false,
@ -127,6 +130,9 @@ const Button = ({
className={className}
icon={icon}
onClick={onClick}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
onFocus={onFocus}
isDisabled={isDisabled}
isWhite={isWhite}
isWebUsb={isWebUsb}
@ -155,6 +161,9 @@ Button.propTypes = {
children: PropTypes.node.isRequired,
className: PropTypes.string,
onClick: PropTypes.func,
onMouseEnter: PropTypes.func,
onMouseLeave: PropTypes.func,
onFocus: PropTypes.func,
isDisabled: PropTypes.bool,
isWhite: PropTypes.bool,
isWebUsb: PropTypes.bool,