0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 22:12:39 +00:00

remove brewCount useless element

This commit is contained in:
Víctor Losada Hernández
2024-02-12 23:18:24 +01:00
parent eeec24ae78
commit 05a7defcb8

View File

@@ -101,18 +101,16 @@ const ArchivePage = createClass({
return (
<div className='foundBrews'>
<span className='brewCount'>{`Brews Found: ${brewCollection.length}`}</span>
{brewCollection.map((brew, index)=>(
<BrewItem brew={brew} key={index} reportError={this.props.reportError} />
))}
<div className='paginationControls'>
{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>
{page < totalPages && (
<button onClick={()=>this.loadPage(page + 1)}>Next Page</button>
<button className='nextPage' onClick={()=>this.loadPage(page + 1)}>Next Page</button>
)}
</div>
</div>