mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-28 04:52:40 +00:00
udpate input zoom
This commit is contained in:
@@ -18,6 +18,7 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
useEffect(() => {
|
||||
console.log(`Zoom to: ${state.zoomLevel}`);
|
||||
updateZoom(state.zoomLevel);
|
||||
setZoomInput(state.zoomLevel);
|
||||
}, [state.zoomLevel]);
|
||||
|
||||
// Update currentPage whenever page prop changes
|
||||
|
||||
Reference in New Issue
Block a user