0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

update method calls for zoom buttons

update method names in onClick events to match latest changes to the branch this builds from.
This commit is contained in:
Gazook89
2024-08-23 22:58:43 -05:00
parent c25bf95a66
commit b0b1f7fd0b

View File

@@ -87,14 +87,14 @@ const ToolBar = ({ onZoomChange, currentPage, onPageChange, totalPages })=>{
<button
id='zoom-to-fill'
className='tool'
onClick={()=>handleZoomChange(calculateZoom('fill'))}
onClick={()=>handleZoomButton(calculateZoom('fill'))}
>
<ZoomIcons.FitWidth title='Fit to Width' style={{ width: '1.5em' }} />
</button>
<button
id='zoom-to-fit'
className='tool'
onClick={()=>handleZoomChange(calculateZoom('fit'))}
onClick={()=>handleZoomButton(calculateZoom('fit'))}
>
<ZoomIcons.FitAll title='Zoom to Fit' style={{ width: '1.5em' }} />
</button>