mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
New file/folder menu on toolbar (#2452)
This commit is contained in:
19
frontend/src/components/menu-control.js
Normal file
19
frontend/src/components/menu-control.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const propTypes = {
|
||||
isShow: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
class MenuControl extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<i className={`fas fa-ellipsis-v ${this.props.isShow ? '' : 'hide'}`} onClick={this.props.onClick}></i>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
MenuControl.propTypes = propTypes;
|
||||
|
||||
export default MenuControl;
|
Reference in New Issue
Block a user