0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 13:22:40 +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:
Víctor Losada Hernández
2024-08-31 12:51:06 +02:00
parent 10ce696333
commit e88272c684
3 changed files with 7 additions and 8 deletions

View File

@@ -33,13 +33,13 @@ const Admin = createClass({
homebrewery admin
</div>
</header>
<div className='container'>
<div className='tabs'>
<main className='container'>
<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>; })}
</div>
</nav>
{this.state.currentTab==='brew' && <BrewUtils />}
{this.state.currentTab==='notifications' && <NotificationUtils />}
</div>
</main>
</div>;
}
});