mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-19 02:59:41 +00:00
remove go dropdown
This commit is contained in:
@@ -23,7 +23,6 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props })
|
|||||||
//To create new items inside the dropdowns call them with Navbar.[DropdownName]
|
//To create new items inside the dropdowns call them with Navbar.[DropdownName]
|
||||||
if(child.type === Navbar.File) slots.file = content;
|
if(child.type === Navbar.File) slots.file = content;
|
||||||
else if(child.type === Navbar.Edit) slots.edit = content;
|
else if(child.type === Navbar.Edit) slots.edit = content;
|
||||||
else if(child.type === Navbar.Go) slots.go = content;
|
|
||||||
else if(child.type === Navbar.Help) slots.help = content;
|
else if(child.type === Navbar.Help) slots.help = content;
|
||||||
//create a new dropdown with Navbar.Menu
|
//create a new dropdown with Navbar.Menu
|
||||||
else if(child.type === Navbar.Menu) slots.menu = content;
|
else if(child.type === Navbar.Menu) slots.menu = content;
|
||||||
@@ -85,17 +84,6 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props })
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderGo = ()=>{
|
|
||||||
return (
|
|
||||||
<Dropdown groupName={'Go'} customTrigger={<>Go</>} icon={null} key={'go'}>
|
|
||||||
<div className='nav-section'>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{navSlots.go}
|
|
||||||
</Dropdown>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
const renderHelp = ()=>{
|
const renderHelp = ()=>{
|
||||||
return <Dropdown groupName={'Help'} customTrigger={<>Help</>} icon={null} key={'help'}>
|
return <Dropdown groupName={'Help'} customTrigger={<>Help</>} icon={null} key={'help'}>
|
||||||
<HelpNavItem />
|
<HelpNavItem />
|
||||||
@@ -143,7 +131,6 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props })
|
|||||||
|
|
||||||
Navbar.File = ({ children })=>children;
|
Navbar.File = ({ children })=>children;
|
||||||
Navbar.Edit = ({ children })=>children;
|
Navbar.Edit = ({ children })=>children;
|
||||||
Navbar.Go = ({ children })=>children;
|
|
||||||
Navbar.Help = ({ children })=>children;
|
Navbar.Help = ({ children })=>children;
|
||||||
Navbar.Menu = ({ children })=>children;
|
Navbar.Menu = ({ children })=>children;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user