mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 14:42:40 +00:00
pagination controls update search terms
This commit is contained in:
@@ -117,7 +117,7 @@ const ArchivePage = createClass({
|
|||||||
this.setState({ error: `${error.response.status}` });
|
this.setState({ error: `${error.response.status}` });
|
||||||
this.updateStateWithBrews([], 1, 1, 0);
|
this.updateStateWithBrews([], 1, 1, 0);
|
||||||
}
|
}
|
||||||
console.log('a',
|
console.log("We've come up empty",
|
||||||
!this.state.brewCollection || this.state.brewCollection.length === 0
|
!this.state.brewCollection || this.state.brewCollection.length === 0
|
||||||
);
|
);
|
||||||
if (!this.state.brewCollection) {
|
if (!this.state.brewCollection) {
|
||||||
@@ -252,7 +252,7 @@ const ArchivePage = createClass({
|
|||||||
{page > 1 && (
|
{page > 1 && (
|
||||||
<button
|
<button
|
||||||
className="previousPage"
|
className="previousPage"
|
||||||
onClick={() => this.loadPage(page - 1, false)}
|
onClick={() => this.loadPage(page - 1, true)}
|
||||||
>
|
>
|
||||||
<<
|
<<
|
||||||
</button>
|
</button>
|
||||||
@@ -261,7 +261,7 @@ const ArchivePage = createClass({
|
|||||||
{page < totalPages && (
|
{page < totalPages && (
|
||||||
<button
|
<button
|
||||||
className="nextPage"
|
className="nextPage"
|
||||||
onClick={() => this.loadPage(page + 1, false)}
|
onClick={() => this.loadPage(page + 1, true)}
|
||||||
>
|
>
|
||||||
>>
|
>>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user