0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-15 12:42:45 +00:00

Change span to Fragment; linting

This commit is contained in:
Trevor Buckner
2024-02-20 23:24:43 -05:00
parent fe5a76c0df
commit 6b7af58e6c

View File

@@ -135,11 +135,11 @@ const BrewItem = createClass({
</> : <></> </> : <></>
} }
<span title={`Authors:\n${brew.authors?.join('\n')}`}> <span title={`Authors:\n${brew.authors?.join('\n')}`}>
<i className='fas fa-user'/> {brew.authors?.map((author, index) => ( <i className='fas fa-user'/> {brew.authors?.map((author, index)=>(
<span key={index}> <>
<a href={`/user/${author}`}>{author}</a> <a key={index} href={`/user/${author}`}>{author}</a>
{index < brew.authors.length - 1 && ', '} {index < brew.authors.length - 1 && ', '}
</span>))} </>))}
</span> </span>
<br /> <br />
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}> <span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>