unzapped bolt shouldn't glow
This commit is contained in:
parent
8447a4a8b2
commit
f90a9905ba
|
@ -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'>
|
||||||
|
|
Loading…
Reference in New Issue