Skip to content

Commit

Permalink
fix: 🐛 Update for changes in ExpandableToolMenu props
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dlwire committed Aug 22, 2019
1 parent 38ea92d commit e09670a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/viewer/src/connectedComponents/PluginSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
}
Expand Down
2 changes: 1 addition & 1 deletion platform/viewer/src/connectedComponents/ToolbarRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e09670a

Please sign in to comment.