mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-29 13:22:40 +00:00
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into update-admin
This commit is contained in:
@@ -2,8 +2,9 @@ import './admin.less';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
const BrewUtils = require('./brewUtils/brewUtils.jsx');
|
||||
const NotificationUtils = require('./notificationUtils/notificationUtils.jsx');
|
||||
import AuthorUtils from './authorUtils/authorUtils.jsx';
|
||||
|
||||
const tabGroups = ['brew', 'notifications'];
|
||||
const tabGroups = ['brew', 'notifications', 'authors'];
|
||||
|
||||
const Admin = ()=>{
|
||||
const [currentTab, setCurrentTab] = useState('brew');
|
||||
@@ -24,7 +25,6 @@ const Admin = ()=>{
|
||||
The Homebrewery Admin Page
|
||||
<a href='/'>back to homepage</a>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
<main className='container'>
|
||||
<nav className='tabs'>
|
||||
@@ -39,6 +39,7 @@ const Admin = ()=>{
|
||||
</nav>
|
||||
{currentTab === 'brew' && <BrewUtils />}
|
||||
{currentTab === 'notifications' && <NotificationUtils />}
|
||||
{currentTab === 'authors' && <AuthorUtils />}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user