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

fix warnings

fix warnings in previous codes
This commit is contained in:
Michael An
2019-04-17 18:21:00 +08:00
parent 5a835ad397
commit 73d41e2b57
18 changed files with 99 additions and 99 deletions

View File

@@ -203,7 +203,7 @@ class ContextMenu extends React.Component {
<div role="menu" className="seafile-contextmenu dropdown-menu" style={inlineStyle} ref={menu => { this.menu = menu; }}>
{this.state.menuList.map((menuItem, index) => {
if (menuItem === 'Divider') {
return <div key={index} className="seafile-divider dropdown-divider"></div>
return <div key={index} className="seafile-divider dropdown-divider"></div>;
} else {
return (
<button

View File

@@ -7,10 +7,10 @@ class GlobalEventListener {
this.callbacks = {};
if (canUseDOM) {
window.addEventListener(MENU_SHOW, this.handleShowEvent);
window.addEventListener(MENU_HIDE, this.handleHideEvent);
window.addEventListener(MENU_SHOW, this.handleShowEvent);
window.addEventListener(MENU_HIDE, this.handleHideEvent);
}
}
}
handleShowEvent = (event) => {
for (const id in this.callbacks) {