fix linter warning
This commit is contained in:
		
							parent
							
								
									ffd3628505
								
							
						
					
					
						commit
						ed0d4f2235
					
				| @ -36,12 +36,15 @@ export default function Item ({ item, rank, children }) { | |||||||
|               <a ref={titleRef} className={`${styles.title} text-reset mr-2`}>{item.title}</a> |               <a ref={titleRef} className={`${styles.title} text-reset mr-2`}>{item.title}</a> | ||||||
|             </Link> |             </Link> | ||||||
|             {item.url && |             {item.url && | ||||||
|               <a |               <> | ||||||
|                 className={`${styles.link} ${wrap ? styles.linkSmall : ''}`} target='_blank' href={item.url} // eslint-disable-line
 |                 {/*  eslint-disable-next-line */} | ||||||
|                 rel={item.sats + item.boost >= NOFOLLOW_LIMIT ? null : 'nofollow'} |                 <a | ||||||
|               > |                   className={`${styles.link} ${wrap ? styles.linkSmall : ''}`} target='_blank' href={item.url} | ||||||
|                 {item.url.replace(/(^https?:|^)\/\//, '')} |                   rel={item.sats + item.boost >= NOFOLLOW_LIMIT ? null : 'nofollow'} | ||||||
|               </a>} |                 > | ||||||
|  |                   {item.url.replace(/(^https?:|^)\/\//, '')} | ||||||
|  |                 </a> | ||||||
|  |               </>} | ||||||
|           </div> |           </div> | ||||||
|           <div className={`${styles.other}`}> |           <div className={`${styles.other}`}> | ||||||
|             <span title={`${item.sats} upvotes \\ ${item.tips} tipped`}>{item.sats + item.tips} sats</span> |             <span title={`${item.sats} upvotes \\ ${item.tips} tipped`}>{item.sats + item.tips} sats</span> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user