mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-24 09:56:58 +00:00
lint pages
This commit is contained in:
1 parent
27045fc42e
commit
1bdded13ba
2 files changed
+14
-14
No files matched your search
@@ -17,7 +17,6 @@ import Nav from '@navbar/nav.jsx';
|
||||
import Navbar from '@navbar/navbar.jsx';
|
||||
import ErrorNavItem from '@navbar/error-navitem.jsx';
|
||||
import googleDriveIcon from '../../../googleDrive.svg';
|
||||
import {Dropdown} from '../../../../components/dropdown/dropdown.jsx';
|
||||
|
||||
const AUTOSAVE_KEY = 'HB_editor_autoSaveOn';
|
||||
const BREWKEY = 'HB_newPage_content';
|
||||
@@ -352,7 +351,8 @@ const EditorPage = (props)=>{
|
||||
)}
|
||||
</Nav.item>}
|
||||
</>
|
||||
)};
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
const renderAutoSaveButton = ()=>(
|
||||
@@ -385,7 +385,7 @@ const EditorPage = (props)=>{
|
||||
save now
|
||||
</Nav.item>
|
||||
{(pageName == 'editPage') && renderAutoSaveButton()}
|
||||
{pageName === 'editPage' && <div className="nav-section">
|
||||
{pageName === 'editPage' && <div className='nav-section'>
|
||||
{renderGoogleDriveIcon()}
|
||||
</div>}
|
||||
</Navbar.File>
|
||||
|
||||
@@ -321,24 +321,24 @@ const ListPage = ({ brewCollection = [{ title: '', class: '', brews: [] }], page
|
||||
};
|
||||
const renderThemePicker = ()=>{
|
||||
return (
|
||||
<div className="radio-toggle theme-container">
|
||||
<div className='radio-toggle theme-container'>
|
||||
<h6>Theme:</h6>
|
||||
<label className="option">
|
||||
<input type="radio" name="theme" onChange={(e)=>handleThemeChange(e, 'light')} checked={themeMode === 'light'}/>
|
||||
<i className="fas fa-sun"/>
|
||||
<label className='option'>
|
||||
<input type='radio' name='theme' onChange={(e)=>handleThemeChange(e, 'light')} checked={themeMode === 'light'}/>
|
||||
<i className='fas fa-sun'/>
|
||||
</label>
|
||||
<label className="option">
|
||||
<input type="radio" name="theme" onChange={(e)=>handleThemeChange(e, 'dark')} checked={themeMode === 'dark'}/>
|
||||
<i className="fas fa-moon"/>
|
||||
<label className='option'>
|
||||
<input type='radio' name='theme' onChange={(e)=>handleThemeChange(e, 'dark')} checked={themeMode === 'dark'}/>
|
||||
<i className='fas fa-moon'/>
|
||||
</label>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
const renderNav = ()=>{
|
||||
|
||||
return (
|
||||
<div className="listPageNav">
|
||||
<div className='listPageNav'>
|
||||
{renderLayoutModeOptions()}
|
||||
{renderThemePicker()}
|
||||
{renderSortOptions()}
|
||||
@@ -347,7 +347,7 @@ const ListPage = ({ brewCollection = [{ title: '', class: '', brews: [] }], page
|
||||
</div>
|
||||
);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className='sitePage listPage'>
|
||||
@@ -355,7 +355,7 @@ const ListPage = ({ brewCollection = [{ title: '', class: '', brews: [] }], page
|
||||
|
||||
{renderNav()}
|
||||
|
||||
<div className={`content V3 ${themeMode + 'Mode'}`}>
|
||||
<div className={`content V3 ${`${themeMode}Mode`}`}>
|
||||
<div className='brewCollection'>{renderBrewCollection(brewCollection)}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user