1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

[eslint] updated eslintrc and improved the code (#4702)

This commit is contained in:
llj
2020-11-02 13:56:35 +08:00
committed by GitHub
parent ed3e5fc416
commit 04f29704b3
337 changed files with 1586 additions and 1585 deletions

View File

@@ -32,7 +32,7 @@ class HistoryListItem extends React.Component {
this.setState({isShowOperationIcon: true});
}
}
onMouseLeave = () => {
if (!this.props.isItemFreezed) {
this.setState({isShowOperationIcon: false});
@@ -74,9 +74,9 @@ class HistoryListItem extends React.Component {
let objID = this.props.currentItem.rev_file_id;
let url = URLDecorator.getUrl({type: 'download_historic_file', filePath: filePath, objID: objID});
return (
<li
className={`history-list-item ${isHigtlightItem ? 'item-active' : ''}`}
onMouseEnter={this.onMouseEnter}
<li
className={`history-list-item ${isHigtlightItem ? 'item-active' : ''}`}
onMouseEnter={this.onMouseEnter}
onMouseLeave={this.onMouseLeave}
onClick={this.onItemClick}
>
@@ -89,11 +89,11 @@ class HistoryListItem extends React.Component {
</div>
<div className="history-operation">
<Dropdown isOpen={this.state.isMenuShow} toggle={this.onToggleClick}>
<DropdownToggle
tag='a'
<DropdownToggle
tag='a'
className={`fas fa-ellipsis-v ${(this.state.isShowOperationIcon || isHigtlightItem) ? '' : 'invisible'}`}
data-toggle="dropdown"
aria-expanded={this.state.isMenuShow}
data-toggle="dropdown"
aria-expanded={this.state.isMenuShow}
alt={gettext('More Operations')}
/>
<DropdownMenu>