1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

fix warning in other format of files

This commit is contained in:
LeoSirius
2019-04-19 21:32:54 +08:00
parent 001235945f
commit 58440a94b9
2 changed files with 6 additions and 6 deletions

View File

@@ -10,9 +10,9 @@ import ShareDialog from '../dialog/share-dialog';
const propTypes = { const propTypes = {
isLocked: PropTypes.bool.isRequired, isLocked: PropTypes.bool.isRequired,
lockedByMe: PropTypes.bool.isRequired, lockedByMe: PropTypes.bool.isRequired,
onSaveChangedContent: PropTypes.func.isRequired, onSaveChangedContent: PropTypes.func,
isSaving: PropTypes.bool.isRequired, isSaving: PropTypes.bool,
isContentChangedButNotSaved: PropTypes.bool.isRequired, isContentChangedButNotSaved: PropTypes.bool,
toggleLockFile: PropTypes.func.isRequired, toggleLockFile: PropTypes.func.isRequired,
toggleCommentPanel: PropTypes.func.isRequired toggleCommentPanel: PropTypes.func.isRequired
}; };

View File

@@ -10,10 +10,10 @@ import CommentPanel from './comment-panel';
import '../../css/file-view.css'; import '../../css/file-view.css';
const propTypes = { const propTypes = {
onSaveChangedContent: PropTypes.func.isRequired, onSaveChangedContent: PropTypes.func,
content: PropTypes.object.isRequired, content: PropTypes.object.isRequired,
isSaving: PropTypes.bool.isRequired, isSaving: PropTypes.bool,
isContentChangedButNotSaved: PropTypes.bool.isRequired, isContentChangedButNotSaved: PropTypes.bool,
}; };
const { isStarred, isLocked, lockedByMe, const { isStarred, isLocked, lockedByMe,