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