mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-17 05:39:46 +00:00
simplify things
This commit is contained in:
@@ -51,7 +51,7 @@ const Navbar = ({ children, brew, editor, title = '', props }) => {
|
||||
</Nav.item>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
const renderFile = () => {
|
||||
return (
|
||||
<Dropdown groupName={'File'} customTrigger={<>File</>} icon={null} key={'file'}>
|
||||
@@ -79,7 +79,7 @@ const Navbar = ({ children, brew, editor, title = '', props }) => {
|
||||
</Dropdown>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
const renderEdit = () => {
|
||||
return (
|
||||
<Dropdown groupName={'Edit'} customTrigger={<>Edit</>} icon={null} key={'edit'}>
|
||||
@@ -162,9 +162,4 @@ const Navbar = ({ children, brew, editor, title = '', props }) => {
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Navbar.File = () => null;
|
||||
Navbar.Edit = () => null;
|
||||
Navbar.Go = () => null;
|
||||
|
||||
export default Navbar;
|
||||
|
||||
Reference in New Issue
Block a user