Skip to content

Commit

Permalink
Add menu prop to Toolbar (#196)
Browse files Browse the repository at this point in the history
* Add menu prop to Toolbar

* Fix adding both normal and menu toolbar icon classes

* Fix undefined props

* Add prop comment
  • Loading branch information
pluscubed authored and prateekbh committed Jul 31, 2017
1 parent fe1641a commit dddb0dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Toolbar/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,16 @@ class ToolbarSection extends MaterialComponent {
}
}

/**
* @prop menu = false
*/
class ToolbarIcon extends MaterialComponent {
constructor() {
constructor(props) {
super();
this.componentName = "toolbar__icon";
if (props.menu) {
this.componentName += "--menu";
}
}
materialDom(props) {
return (
Expand Down

0 comments on commit dddb0dd

Please sign in to comment.