1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

Fix eslint warnings (#5635)

* 01 fix eslint warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings
This commit is contained in:
Michael An
2023-09-13 08:40:50 +08:00
committed by GitHub
parent d829ba5b23
commit 14ce391007
520 changed files with 4774 additions and 3438 deletions

View File

@@ -56,7 +56,7 @@ class ItemDropdownMenu extends React.Component {
onShowMenu = () => {
// nothing todo
}
};
onHideMenu = () => {
if (this.state.isItemMenuShow) {
@@ -65,20 +65,20 @@ class ItemDropdownMenu extends React.Component {
this.props.unfreezeItem();
}
}
}
};
onDropdownToggleKeyDown = (e) => {
if (e.key == 'Enter' || e.key == 'Space') {
this.onDropdownToggleClick(e);
}
}
};
onDropdownToggleClick = (e) => {
e.preventDefault();
e.stopPropagation();
this.toggleOperationMenu();
}
};
toggleOperationMenu = () => {
this.setState(
@@ -91,19 +91,19 @@ class ItemDropdownMenu extends React.Component {
}
}
);
}
};
onMenuItemKeyDown = (e) => {
if (e.key == 'Enter' || e.key == 'Space') {
this.onMenuItemClick(e);
}
}
};
onMenuItemClick = (event) => {
let operation = Utils.getEventData(event, 'toggle');
let item = this.props.item;
this.props.onMenuItemClick(operation, event, item);
}
};
render() {
let menuList = this.state.menuList;