fix linter warning

This commit is contained in:
keyan 2021-12-06 15:27:14 -06:00
parent ffd3628505
commit ed0d4f2235

View File

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