Don't repeat upvote fill color (#1156)

This commit is contained in:
ekzyis 2024-05-07 14:20:22 -05:00 committed by GitHub
parent 902875bd55
commit 8bc719b3a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -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}
/> />