mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
Prop type check repair (#2919)
* repair intent check wraning * change doublequote to singlequote, add semicolon * optimized code * modify type-check wraning
This commit is contained in:
@@ -17,7 +17,7 @@ class TreeNodeMenu extends React.Component {
|
||||
this.state = {
|
||||
isItemMenuShow: false,
|
||||
menuList: []
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@@ -66,12 +66,13 @@ class TreeNodeMenu extends React.Component {
|
||||
e.stopPropagation();
|
||||
this.setState(
|
||||
{isItemMenuShow: !this.state.isItemMenuShow }, () => {
|
||||
if (this.state.isItemMenuShow) {
|
||||
this.props.onFreezedItem()
|
||||
} else {
|
||||
this.props.onUnFreezedItem();
|
||||
if (this.state.isItemMenuShow) {
|
||||
this.props.onFreezedItem();
|
||||
} else {
|
||||
this.props.onUnFreezedItem();
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
}
|
||||
|
||||
onMenuItemClick = (event) => {
|
||||
|
Reference in New Issue
Block a user