0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 09: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 <button
id='zoom-to-fill' id='zoom-to-fill'
className='tool' className='tool'
onClick={()=>handleZoomChange(calculateZoom('fill'))} onClick={()=>handleZoomButton(calculateZoom('fill'))}
> >
<ZoomIcons.FitWidth title='Fit to Width' style={{ width: '1.5em' }} /> <ZoomIcons.FitWidth title='Fit to Width' style={{ width: '1.5em' }} />
</button> </button>
<button <button
id='zoom-to-fit' id='zoom-to-fit'
className='tool' className='tool'
onClick={()=>handleZoomChange(calculateZoom('fit'))} onClick={()=>handleZoomButton(calculateZoom('fit'))}
> >
<ZoomIcons.FitAll title='Zoom to Fit' style={{ width: '1.5em' }} /> <ZoomIcons.FitAll title='Zoom to Fit' style={{ width: '1.5em' }} />
</button> </button>