Commit 4d12a798 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Make Menu component accept a string `label`

parent 3f5b54f5
......@@ -150,7 +150,10 @@ Menu.propTypes = {
/**
* Label element for the toggle button that hides and shows the menu.
*/
label: propTypes.object.isRequired,
label: propTypes.oneOfType([
propTypes.object.isRequired,
propTypes.string.isRequired,
]),
/**
* Menu items and sections to display in the content area of the menu.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment