0
0
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:
Víctor Losada Hernández
2024-05-31 20:28:34 +02:00
parent 000c3db8cd
commit 75c592b437

View File

@@ -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}
>