mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 20:42:44 +00:00
"Refactor admin UI components: update class names, element types, and nesting in admin.jsx, notificationLookup.jsx, and notificationUtils.jsx"
This commit is contained in:
@@ -33,13 +33,13 @@ const Admin = createClass({
|
|||||||
homebrewery admin
|
homebrewery admin
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div className='container'>
|
<main className='container'>
|
||||||
<div className='tabs'>
|
<nav className='tabs'>
|
||||||
{tabGroups.map((tab, idx)=>{ return <button className={tab===this.state.currentTab ? 'active' : ''} key={idx} onClick={()=>{ return this.handleClick(tab); }}>{tab.toUpperCase()}</button>; })}
|
{tabGroups.map((tab, idx)=>{ return <button className={tab===this.state.currentTab ? 'active' : ''} key={idx} onClick={()=>{ return this.handleClick(tab); }}>{tab.toUpperCase()}</button>; })}
|
||||||
</div>
|
</nav>
|
||||||
{this.state.currentTab==='brew' && <BrewUtils />}
|
{this.state.currentTab==='brew' && <BrewUtils />}
|
||||||
{this.state.currentTab==='notifications' && <NotificationUtils />}
|
{this.state.currentTab==='notifications' && <NotificationUtils />}
|
||||||
</div>
|
</main>
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ const NotificationLookup = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="notificationsList">
|
<div className="notificationList">
|
||||||
{notifications.map((notification) => (
|
{notifications.map((notification) => (
|
||||||
<details key={notification.dismissKey}>
|
<details key={notification.dismissKey}>
|
||||||
<summary>{notification.title || 'No Title'}</summary>
|
<summary>{notification.title || 'No Title'}</summary>
|
||||||
|
|||||||
@@ -5,11 +5,10 @@ const NotificationAdd = require('./notificationAdd/notificationAdd.jsx');
|
|||||||
|
|
||||||
const NotificationUtils = () => {
|
const NotificationUtils = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<section className='notificationUtils'>
|
||||||
<NotificationAdd />
|
<NotificationAdd />
|
||||||
<hr />
|
|
||||||
<NotificationLookup />
|
<NotificationLookup />
|
||||||
</>
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user