make balance hiding work on mobile using pointer events
This commit is contained in:
parent
6df654b208
commit
b1d6bf058e
|
@ -14,7 +14,7 @@ export default function HiddenWalletSummary ({ abbreviate, fixedWidth }) {
|
|||
}, [])
|
||||
|
||||
return (
|
||||
<span ref={ref} style={{ width: fixedWidth ? width : undefined }} className='d-inline-block' align='right' onMouseEnter={() => setHover(true)} onMouseLeave={() => setHover(false)}>
|
||||
<span ref={ref} style={{ width: fixedWidth ? width : undefined }} className='d-inline-block' align='right' onPointerEnter={() => setHover(true)} onPointerLeave={() => setHover(false)}>
|
||||
{hover ? (abbreviate ? abbrNum(me.sats) : numWithUnits(me.sats, { abbreviate: false })) : '*****'}
|
||||
</span>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue