mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 13:32:45 +00:00
remove brewCount useless element
This commit is contained in:
@@ -101,18 +101,16 @@ const ArchivePage = createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='foundBrews'>
|
<div className='foundBrews'>
|
||||||
<span className='brewCount'>{`Brews Found: ${brewCollection.length}`}</span>
|
|
||||||
|
|
||||||
{brewCollection.map((brew, index)=>(
|
{brewCollection.map((brew, index)=>(
|
||||||
<BrewItem brew={brew} key={index} reportError={this.props.reportError} />
|
<BrewItem brew={brew} key={index} reportError={this.props.reportError} />
|
||||||
))}
|
))}
|
||||||
<div className='paginationControls'>
|
<div className='paginationControls'>
|
||||||
{page > 1 && (
|
{page > 1 && (
|
||||||
<button onClick={()=>this.loadPage(page - 1)}>Previous Page</button>
|
<button className='previousPage' onClick={()=>this.loadPage(page - 1)}>Previous Page</button>
|
||||||
)}
|
)}
|
||||||
<span className='currentPage'>Page {page}</span>
|
<span className='currentPage'>Page {page}</span>
|
||||||
{page < totalPages && (
|
{page < totalPages && (
|
||||||
<button onClick={()=>this.loadPage(page + 1)}>Next Page</button>
|
<button className='nextPage' onClick={()=>this.loadPage(page + 1)}>Next Page</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user