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.
23 lines
476 B
JavaScript
23 lines
476 B
JavaScript
import React, { Component } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { ExpandableToolMenu } from '@ohif/ui';
|
|
import './PluginSwitch.css';
|
|
|
|
class PluginSwitch extends Component {
|
|
static propTypes = {
|
|
buttons: PropTypes.array,
|
|
};
|
|
|
|
static defaultProps = {};
|
|
|
|
render() {
|
|
return (
|
|
<div className="PluginSwitch">
|
|
<ExpandableToolMenu buttons={this.props.buttons} label={'View'} />
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default PluginSwitch;
|