0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 16:32:40 +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 = ()=>{ 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>