fix: 🐛 Update for changes in ExpandableToolMenu props

The props for ExpandableToolMenu were changed from expecting `text` to
expecting `label` for the menu's label. These changes make sure we're
providing it that way.
This commit is contained in:
David Wire 2019-08-22 07:46:16 -06:00
parent 38ea92d2a3
commit e09670ada2
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class PluginSwitch extends Component {
render() {
return (
<div className="PluginSwitch">
<ExpandableToolMenu buttons={this.props.buttons} text={'View'} />
<ExpandableToolMenu buttons={this.props.buttons} label={'View'} />
</div>
);
}

View File

@ -173,7 +173,7 @@ function _getButtonComponents(toolbarButtons, activeButtons) {
return (
<ExpandableToolMenu
key={button.id}
text={button.label}
label={button.label}
icon={button.icon}
buttons={childButtons}
activeCommand={activeCommand}