0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00
This commit is contained in:
Trevor Buckner
2024-09-18 15:36:48 -04:00
parent dca7086522
commit a7c892c1bb

View File

@@ -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>