bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/modals/dropdown/DropdownTrigger.jsx

34 lines
860 B
React
Raw Normal View History

2016-08-18 04:03:22 +08:00
import React, { Component, PropTypes } from 'react';
import Button from '/imports/ui/components/button/component';
import styles from './styles';
const propTypes = {
labelBtn: PropTypes.string.isRequired,
iconBtn: PropTypes.string.isRequired,
toggleMenu: PropTypes.func.isRequired,
}
export default class DropdownTrigger extends Component {
constructor(props) {
super(props);
}
render() {
const { labelBtn, iconBtn, refBtn } = this.props;
const toggle = this.props.toggleMenu.bind(this);
return (
<Button className={styles.settingBtn}
role='button'
label='setting'
icon='more'
ghost={true}
circle={true}
hideLabel={true}
onClick={toggle}
ref='settingBtn'/>
);
}
}
DropdownTrigger.propTypes = propTypes;