mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
Add mouse+focus events to Button
This commit is contained in:
parent
30f63622ae
commit
647ee89991
@ -117,6 +117,9 @@ const Button = ({
|
|||||||
className,
|
className,
|
||||||
icon,
|
icon,
|
||||||
onClick = () => { },
|
onClick = () => { },
|
||||||
|
onMouseEnter,
|
||||||
|
onMouseLeave,
|
||||||
|
onFocus,
|
||||||
isDisabled = false,
|
isDisabled = false,
|
||||||
isWhite = false,
|
isWhite = false,
|
||||||
isWebUsb = false,
|
isWebUsb = false,
|
||||||
@ -127,6 +130,9 @@ const Button = ({
|
|||||||
className={className}
|
className={className}
|
||||||
icon={icon}
|
icon={icon}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
|
onMouseEnter={onMouseEnter}
|
||||||
|
onMouseLeave={onMouseLeave}
|
||||||
|
onFocus={onFocus}
|
||||||
isDisabled={isDisabled}
|
isDisabled={isDisabled}
|
||||||
isWhite={isWhite}
|
isWhite={isWhite}
|
||||||
isWebUsb={isWebUsb}
|
isWebUsb={isWebUsb}
|
||||||
@ -155,6 +161,9 @@ Button.propTypes = {
|
|||||||
children: PropTypes.node.isRequired,
|
children: PropTypes.node.isRequired,
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
|
onMouseEnter: PropTypes.func,
|
||||||
|
onMouseLeave: PropTypes.func,
|
||||||
|
onFocus: PropTypes.func,
|
||||||
isDisabled: PropTypes.bool,
|
isDisabled: PropTypes.bool,
|
||||||
isWhite: PropTypes.bool,
|
isWhite: PropTypes.bool,
|
||||||
isWebUsb: PropTypes.bool,
|
isWebUsb: PropTypes.bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user