mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 20:12:41 +00:00
"Update onPageChange argument in nextPage button onClick handler"
This commit is contained in:
@@ -144,7 +144,7 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
|||||||
className="nextPage"
|
className="nextPage"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log(`page is ${state.currentPage}`);
|
console.log(`page is ${state.currentPage}`);
|
||||||
onPageChange(state.currentPage);
|
onPageChange(state.currentPage+1);
|
||||||
}}
|
}}
|
||||||
disabled={state.currentPage + 1 === state.totalPages}
|
disabled={state.currentPage + 1 === state.totalPages}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user