0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Add key prop to Admin tabs

This commit is contained in:
G.Ambatte
2023-01-04 23:20:11 +13:00
parent b8fd8a7a86
commit 35b4c354f2

View File

@@ -36,7 +36,7 @@ const Admin = createClass({
</header>
<div className='container'>
<div className='tabs'>
{tabGroups.map((tab)=>{ return <button onClick={()=>{ return this.handleClick(tab); }}>{tab.toUpperCase()}</button>; })}
{tabGroups.map((tab, idx)=>{ return <button key={idx} onClick={()=>{ return this.handleClick(tab); }}>{tab.toUpperCase()}</button>; })}
</div>
{this.state.currentTab==='brew' && <BrewUtils />}
{this.state.currentTab==='notifications' && <NotificationUtils />}