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 })
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const fillColor = hover ? nextColor : color
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <div ref={ref} className='upvoteParent'>
 | 
			
		||||
      <LongPressable
 | 
			
		||||
@ -203,8 +206,8 @@ export default function UpVote ({ item, className }) {
 | 
			
		||||
                    }
 | 
			
		||||
              style={meSats || hover
 | 
			
		||||
                ? {
 | 
			
		||||
                    fill: hover ? nextColor : color,
 | 
			
		||||
                    filter: `drop-shadow(0 0 6px ${hover ? nextColor : color}90)`
 | 
			
		||||
                    fill: fillColor,
 | 
			
		||||
                    filter: `drop-shadow(0 0 6px ${fillColor}90)`
 | 
			
		||||
                  }
 | 
			
		||||
                : undefined}
 | 
			
		||||
            />
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user