mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { curNoteMsg, curNoteID, siteRoot, gettext } from '../utils/constants';
|
||||
import { curNoteMsg, curNoteID, siteRoot, gettext } from '../utils/constants';
|
||||
|
||||
import '../css/system-notification.css';
|
||||
|
||||
@@ -34,7 +34,7 @@ class SystemNotification extends React.Component {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
render() {
|
||||
if (!curNoteMsg || this.state.isClosed) {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user