1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +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

@@ -20,7 +20,7 @@ class Notification extends React.Component {
componentDidMount() {
seafileAPI.getUnseenNotificationCount().then(res => {
this.setState({unseenCount: res.data.unseen_count});
this.setState({ unseenCount: res.data.unseen_count });
});
}
@@ -34,7 +34,7 @@ class Notification extends React.Component {
});
} else {
this.loadNotices();
this.setState({showNotice: true});
this.setState({ showNotice: true });
}
};
@@ -43,7 +43,7 @@ class Notification extends React.Component {
let perPage = 5;
seafileAPI.listNotifications(page, perPage).then(res => {
let noticeList = res.data.notification_list;
this.setState({noticeList: noticeList});
this.setState({ noticeList: noticeList });
});
};
@@ -71,11 +71,11 @@ class Notification extends React.Component {
onNotificationDialogToggle = () => {
let newSearch = this.state.isShowNotificationDialog ? null : 'all';
Utils.updateSearchParameter('notifications', newSearch);
this.setState({isShowNotificationDialog: !this.state.isShowNotificationDialog});
this.setState({ isShowNotificationDialog: !this.state.isShowNotificationDialog });
};
onNotificationListToggle = () => {
this.setState({showNotice: false});
this.setState({ showNotice: false });
};
onMarkAllNotifications = () => {