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