0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 20:42:44 +00:00

fix page displacement

This commit is contained in:
Víctor Losada Hernández
2024-05-31 20:57:09 +02:00
parent 75c592b437
commit afa0571382
2 changed files with 8 additions and 4 deletions

View File

@@ -143,8 +143,8 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
<button
className="nextPage"
onClick={() => {
console.log(`page is ${state.currentPage}`);
onPageChange(state.currentPage+1);
console.log(`page is ${state.currentPage} and i move to ${state.currentPage}`);
onPageChange(state.currentPage);
}}
disabled={state.currentPage + 1 === state.totalPages}
>