unzapped bolt shouldn't glow

This commit is contained in:
k00b 2024-09-20 10:41:46 -05:00
parent 8447a4a8b2
commit f90a9905ba
1 changed files with 9 additions and 8 deletions

View File

@ -227,14 +227,15 @@ export default function UpVote ({ item, className }) {
} }
} }
const fillColor = hover || pending ? nextColor : color const style = useMemo(() => {
const fillColor = pending || hover ? nextColor : color
const style = useMemo(() => (fillColor return meSats || hover || pending
? { ? {
fill: fillColor, fill: fillColor,
filter: `drop-shadow(0 0 6px ${fillColor}90)` filter: `drop-shadow(0 0 6px ${fillColor}90)`
} }
: undefined), [fillColor]) : undefined
}, [hover, pending, nextColor, color, meSats])
return ( return (
<div ref={ref} className='upvoteParent'> <div ref={ref} className='upvoteParent'>