mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 02:52:43 +00:00
Add thumbnail functionality to BrewItem
This commit is contained in:
@@ -98,6 +98,12 @@ const BrewItem = createClass({
|
||||
const dateFormatString = 'YYYY-MM-DD HH:mm:ss';
|
||||
|
||||
return <div className='brewItem'>
|
||||
{brew.thumbnail ?
|
||||
<div className='thumbnail'>
|
||||
<img className='thumbnailImage' src={brew.thumbnail} ></img>
|
||||
</div> :
|
||||
<></>
|
||||
}
|
||||
<div className='text'>
|
||||
<h2>{brew.title}</h2>
|
||||
<p className='description'>{brew.description}</p>
|
||||
|
||||
Reference in New Issue
Block a user