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