mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 22:22:42 +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"
|
||||
onClick={() => {
|
||||
console.log(`page is ${state.currentPage}`);
|
||||
onPageChange(state.currentPage);
|
||||
onPageChange(state.currentPage+1);
|
||||
}}
|
||||
disabled={state.currentPage + 1 === state.totalPages}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user