Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
>
{menuItems}
<button>
{!!accessory && <div>{accessory}</div>}
{!!title && size !== 'tiny' && <div>{title}</div>}
{}
</button>
);
}
}
Utility.propTypes = propTypes;
Utility.defaultProps = defaultProps;
Utility.Item = Menu.Item;
Utility.ItemGroup = Menu.ItemGroup;
Utility.Divider = Menu.Divider;
Utility.Opts = Menu.Opts;
export default Utility;
isArrowDisplayed
isOpen={this.state.isOpen}
targetRef={this.getButtonNode}
contentWidth={contentWidth}
>
{this.wrapChildrenOnClick(children)}
{clonedButton}
);
}
}
CollapsibleMenu.propTypes = propTypes;
CollapsibleMenu.childContextTypes = childContextTypes;
CollapsibleMenu.Item = Menu.Item;
CollapsibleMenu.ItemGroup = Menu.ItemGroup;
CollapsibleMenu.Opts = {
widths: Menu.Opts.widths,
};
export default CollapsibleMenu;
<button>
);
}
}
Utility.propTypes = propTypes;
Utility.defaultProps = defaultProps;
Utility.Item = Menu.Item;
Utility.ItemGroup = Menu.ItemGroup;
Utility.Divider = Menu.Divider;
Utility.Opts = Menu.Opts;
export default Utility;
</button>