make balance hiding work on mobile using pointer events

This commit is contained in:
keyan 2023-09-12 14:37:13 -05:00
parent 6df654b208
commit b1d6bf058e
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default function HiddenWalletSummary ({ abbreviate, fixedWidth }) {
}, []) }, [])
return ( 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 })) : '*****'} {hover ? (abbreviate ? abbrNum(me.sats) : numWithUnits(me.sats, { abbreviate: false })) : '*****'}
</span> </span>
) )