2018-10-16 14:27:21 +08:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
const propTypes = {
|
|
|
|
isShow: PropTypes.bool.isRequired,
|
2018-10-16 18:19:51 +08:00
|
|
|
onClick: PropTypes.func.isRequired,
|
2018-10-16 14:27:21 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class MenuControl extends React.Component {
|
2020-11-02 13:56:35 +08:00
|
|
|
|
2018-10-16 14:27:21 +08:00
|
|
|
render() {
|
|
|
|
return (
|
2024-06-28 08:39:44 +08:00
|
|
|
<i className={`sf3-font sf3-font-more-vertical ${this.props.isShow ? '' : 'invisible'}`} onClick={this.props.onClick}></i>
|
2018-10-16 14:27:21 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MenuControl.propTypes = propTypes;
|
|
|
|
|
2018-11-08 10:36:41 +08:00
|
|
|
export default MenuControl;
|