mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 14:26:54 +00:00
Prevent BrewUtils from loading when it is not the current Admin tab
This commit is contained in:
1 parent
e3de7b9f01
commit
dc724492ef
1 file changed
+2
-2
@@ -8,10 +8,10 @@ import LockTools from './lockTools/lockTools.jsx';
|
||||
const tabGroups = ['brew', 'notifications', 'authors', 'locks'];
|
||||
|
||||
const Admin = ()=>{
|
||||
const [currentTab, setCurrentTab] = useState('brew');
|
||||
const [currentTab, setCurrentTab] = useState('');
|
||||
|
||||
useEffect(()=>{
|
||||
setCurrentTab(localStorage.getItem('hbAdminTab'));
|
||||
setCurrentTab(localStorage.getItem('hbAdminTab') || 'brew');
|
||||
}, []);
|
||||
|
||||
useEffect(()=>{
|
||||
|
||||
Reference in new issue
Block a user