mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +00:00
fix warning in other format of files
This commit is contained in:
@@ -10,9 +10,9 @@ import ShareDialog from '../dialog/share-dialog';
|
||||
const propTypes = {
|
||||
isLocked: PropTypes.bool.isRequired,
|
||||
lockedByMe: PropTypes.bool.isRequired,
|
||||
onSaveChangedContent: PropTypes.func.isRequired,
|
||||
isSaving: PropTypes.bool.isRequired,
|
||||
isContentChangedButNotSaved: PropTypes.bool.isRequired,
|
||||
onSaveChangedContent: PropTypes.func,
|
||||
isSaving: PropTypes.bool,
|
||||
isContentChangedButNotSaved: PropTypes.bool,
|
||||
toggleLockFile: PropTypes.func.isRequired,
|
||||
toggleCommentPanel: PropTypes.func.isRequired
|
||||
};
|
||||
|
@@ -10,10 +10,10 @@ import CommentPanel from './comment-panel';
|
||||
import '../../css/file-view.css';
|
||||
|
||||
const propTypes = {
|
||||
onSaveChangedContent: PropTypes.func.isRequired,
|
||||
onSaveChangedContent: PropTypes.func,
|
||||
content: PropTypes.object.isRequired,
|
||||
isSaving: PropTypes.bool.isRequired,
|
||||
isContentChangedButNotSaved: PropTypes.bool.isRequired,
|
||||
isSaving: PropTypes.bool,
|
||||
isContentChangedButNotSaved: PropTypes.bool,
|
||||
};
|
||||
|
||||
const { isStarred, isLocked, lockedByMe,
|
||||
|
Reference in New Issue
Block a user