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:
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user