mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-16 19:02:40 +00:00
fix last page navigation
This commit is contained in:
@@ -146,7 +146,7 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
|||||||
console.log(`page is ${state.currentPage} and i move to ${state.currentPage}`);
|
console.log(`page is ${state.currentPage} and i move to ${state.currentPage}`);
|
||||||
onPageChange(state.currentPage);
|
onPageChange(state.currentPage);
|
||||||
}}
|
}}
|
||||||
disabled={state.currentPage + 1 === state.totalPages}
|
disabled={state.currentPage >= state.totalPages}
|
||||||
>
|
>
|
||||||
<i className="fas fa-arrow-right"></i>
|
<i className="fas fa-arrow-right"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user