1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

fix code format (#6365)

This commit is contained in:
Michael An
2024-07-18 11:58:42 +08:00
committed by GitHub
parent c5d02b33b2
commit 67210c7363
450 changed files with 2425 additions and 2385 deletions

View File

@@ -39,14 +39,14 @@ class ItemDropdownMenu extends React.Component {
}
let { item } = this.props;
let menuList = this.props.getMenuList(item);
this.setState({menuList: menuList});
this.setState({ menuList: menuList });
}
UNSAFE_componentWillReceiveProps(nextProps) { // for toolbar item operation
UNSAFE_componentWillReceiveProps(nextProps) { // for toolbar item operation
let { item } = nextProps;
if (item.name !== this.props.item.name) {
let menuList = this.props.getMenuList(item);
this.setState({menuList: menuList});
this.setState({ menuList: menuList });
}
}
@@ -62,7 +62,7 @@ class ItemDropdownMenu extends React.Component {
onHideMenu = () => {
if (this.state.isItemMenuShow) {
this.setState({isItemMenuShow: false});
this.setState({ isItemMenuShow: false });
if (typeof(this.props.unfreezeItem) === 'function') {
this.props.unfreezeItem();
}
@@ -84,7 +84,7 @@ class ItemDropdownMenu extends React.Component {
toggleOperationMenu = () => {
this.setState(
{isItemMenuShow: !this.state.isItemMenuShow},
{ isItemMenuShow: !this.state.isItemMenuShow },
() => {
if (this.state.isItemMenuShow && typeof(this.props.freezeItem) === 'function') {
this.props.freezeItem();