mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-21 09:22:50 +00:00
Run ESLint auto lint (spaces to tabs mostly)
This commit is contained in:
@@ -59,8 +59,8 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="toolBar">
|
||||
<div className="tool">
|
||||
<div className='toolBar'>
|
||||
<div className='tool'>
|
||||
<button
|
||||
onClick={()=>setZoomLevel('out')}
|
||||
disabled={state.zoomLevel <= minZoom}
|
||||
@@ -68,12 +68,12 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
Zoom Out
|
||||
</button>
|
||||
</div>
|
||||
<div className="tool">
|
||||
<div className='tool'>
|
||||
<input
|
||||
className="slider"
|
||||
type="range"
|
||||
name="zoom"
|
||||
list="zoomLevels"
|
||||
className='slider'
|
||||
type='range'
|
||||
name='zoom'
|
||||
list='zoomLevels'
|
||||
min={minZoom}
|
||||
max={maxZoom}
|
||||
step={zoomStep}
|
||||
@@ -91,7 +91,7 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<datalist id="zoomLevels">
|
||||
<datalist id='zoomLevels'>
|
||||
{Array.from(
|
||||
{
|
||||
length :
|
||||
@@ -104,7 +104,7 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
</datalist>
|
||||
</div>
|
||||
|
||||
<div className="tool">
|
||||
<div className='tool'>
|
||||
<button
|
||||
onClick={()=>setZoomLevel('in')}
|
||||
disabled={state.zoomLevel >= maxZoom}
|
||||
@@ -112,25 +112,25 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
Zoom In
|
||||
</button>
|
||||
</div>
|
||||
<div className="tool">
|
||||
<div className='tool'>
|
||||
<button
|
||||
className="previousPage"
|
||||
className='previousPage'
|
||||
onClick={()=>{
|
||||
console.log(`page is ${state.currentPage}`);
|
||||
onPageChange(state.currentPage - 2);
|
||||
}}
|
||||
disabled={state.currentPage <= 1}
|
||||
>
|
||||
<i className="fas fa-arrow-left"></i>
|
||||
<i className='fas fa-arrow-left'></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<input
|
||||
type="number"
|
||||
name="page"
|
||||
type='number'
|
||||
name='page'
|
||||
min={1}
|
||||
max={state.totalPages}
|
||||
id="pageInput"
|
||||
id='pageInput'
|
||||
value={state.pageNumberInput}
|
||||
onChange={(e)=>handleInputChange(e.target.value, 'page')}
|
||||
onBlur={(e)=>{
|
||||
@@ -144,9 +144,9 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
}}
|
||||
/>
|
||||
|
||||
<div className="tool">
|
||||
<div className='tool'>
|
||||
<button
|
||||
className="nextPage"
|
||||
className='nextPage'
|
||||
onClick={()=>{
|
||||
console.log(
|
||||
`page is ${state.currentPage} and i move to ${state.currentPage}`
|
||||
@@ -155,7 +155,7 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
|
||||
}}
|
||||
disabled={state.currentPage >= state.totalPages}
|
||||
>
|
||||
<i className="fas fa-arrow-right"></i>
|
||||
<i className='fas fa-arrow-right'></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user