mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 10:06:58 +00:00
remove id attribute from component
This commit is contained in:
1 parent
285522d820
commit
c0c4db95a4
1 file changed
+1
-1
@@ -8,7 +8,7 @@ import _ from 'lodash';
|
|||||||
// use react context to keep track of the menu depth (menus in menus)
|
// use react context to keep track of the menu depth (menus in menus)
|
||||||
const MenuDepthContext = React.createContext(0);
|
const MenuDepthContext = React.createContext(0);
|
||||||
|
|
||||||
const Dropdown = ({ groupName, className = null, icon, children, color = null, id, customTrigger, dir = 'right', ...props })=>{
|
const Dropdown = ({ groupName, className = null, icon, children, color = null, customTrigger, dir = 'right', ...props })=>{
|
||||||
const menuId = `${_.kebabCase(groupName)}-menu`;
|
const menuId = `${_.kebabCase(groupName)}-menu`;
|
||||||
const anchorName = `--${menuId}`;
|
const anchorName = `--${menuId}`;
|
||||||
const depth = React.useContext(MenuDepthContext);
|
const depth = React.useContext(MenuDepthContext);
|
||||||
|
|||||||
Reference in new issue
Block a user