mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 04:22:40 +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';
|
const dateFormatString = 'YYYY-MM-DD HH:mm:ss';
|
||||||
|
|
||||||
return <div className='brewItem'>
|
return <div className='brewItem'>
|
||||||
|
{brew.thumbnail ?
|
||||||
|
<div className='thumbnail'>
|
||||||
|
<img className='thumbnailImage' src={brew.thumbnail} ></img>
|
||||||
|
</div> :
|
||||||
|
<></>
|
||||||
|
}
|
||||||
<div className='text'>
|
<div className='text'>
|
||||||
<h2>{brew.title}</h2>
|
<h2>{brew.title}</h2>
|
||||||
<p className='description'>{brew.description}</p>
|
<p className='description'>{brew.description}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user