mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 18:56:54 +00:00
Add thumbnail functionality to BrewItem
This commit is contained in:
1 parent
1fb3ec4057
commit
0f1c585567
1 file changed
+6
@@ -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