Don't repeat upvote fill color (#1156)
This commit is contained in:
parent
902875bd55
commit
8bc719b3a5
@ -179,6 +179,9 @@ export default function UpVote ({ item, className }) {
|
|||||||
showModal(onClose => <ItemAct onClose={onClose} itemId={item.id} act={act} />, { onClose: handleModalClosed })
|
showModal(onClose => <ItemAct onClose={onClose} itemId={item.id} act={act} />, { onClose: handleModalClosed })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const fillColor = hover ? nextColor : color
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={ref} className='upvoteParent'>
|
<div ref={ref} className='upvoteParent'>
|
||||||
<LongPressable
|
<LongPressable
|
||||||
@ -203,8 +206,8 @@ export default function UpVote ({ item, className }) {
|
|||||||
}
|
}
|
||||||
style={meSats || hover
|
style={meSats || hover
|
||||||
? {
|
? {
|
||||||
fill: hover ? nextColor : color,
|
fill: fillColor,
|
||||||
filter: `drop-shadow(0 0 6px ${hover ? nextColor : color}90)`
|
filter: `drop-shadow(0 0 6px ${fillColor}90)`
|
||||||
}
|
}
|
||||||
: undefined}
|
: undefined}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user