mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 16:32:40 +00:00
Lint
This commit is contained in:
@@ -76,13 +76,11 @@ const NotificationLookup = ()=>{
|
|||||||
}
|
}
|
||||||
|
|
||||||
const renderNotificationsList = ()=>{
|
const renderNotificationsList = ()=>{
|
||||||
if(error) {
|
if(error)
|
||||||
return <div className='error'>{error}</div>;
|
return <div className='error'>{error}</div>;
|
||||||
}
|
|
||||||
|
|
||||||
if(notifications.length === 0) {
|
if(notifications.length === 0)
|
||||||
return <div className='noNotification'>No notifications available.</div>;
|
return <div className='noNotification'>No notifications available.</div>;
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul className='notificationList'>
|
<ul className='notificationList'>
|
||||||
@@ -100,8 +98,9 @@ const NotificationLookup = ()=>{
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='notificationLookup'>
|
<div className='notificationLookup'>
|
||||||
<h2>Check all Notifications</h2><button onClick={lookupAll}>
|
<h2>Check all Notifications</h2>
|
||||||
<i className={`fas ${searching ? 'fa-spin fa-spinner' : 'fa-search'}`} />
|
<button onClick={lookupAll}>
|
||||||
|
<i className={`fas ${searching ? 'fa-spin fa-spinner' : 'fa-search'}`} />
|
||||||
</button>
|
</button>
|
||||||
{renderNotificationsList()}
|
{renderNotificationsList()}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user