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

@@ -34,7 +34,7 @@ class AddAbuseReportDialog extends React.Component {
}
seafileAPI.addAbuseReport(this.props.sharedToken, this.state.abuseType, this.state.description, this.state.reporter, this.props.filePath).then((res) => {
this.props.toggleAddAbuseReportDialog();
toaster.success(gettext('Success'), {duration: 2});
toaster.success(gettext('Success'), { duration: 2 });
}).catch((error) => {
if (error.response) {
this.setState({
@@ -49,17 +49,17 @@ class AddAbuseReportDialog extends React.Component {
if (type === this.state.abuseType) {
return;
}
this.setState({abuseType: type});
this.setState({ abuseType: type });
};
setReporter = (event) => {
let reporter = event.target.value.trim();
this.setState({reporter: reporter});
this.setState({ reporter: reporter });
};
setDescription = (event) => {
let desc = event.target.value.trim();
this.setState({description: desc});
this.setState({ description: desc });
};
render() {