mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
Prop type check repair (#2919)
* repair intent check wraning * change doublequote to singlequote, add semicolon * optimized code * modify type-check wraning
This commit is contained in:
@@ -11,7 +11,7 @@ const shareRepoListItemProps = {
|
||||
repo: PropTypes.object.isRequired,
|
||||
onRepoSelect: PropTypes.func.isRequired,
|
||||
onPermissionChange: PropTypes.func.isRequired,
|
||||
}
|
||||
};
|
||||
|
||||
class ShareRepoListItem extends React.Component {
|
||||
|
||||
@@ -102,7 +102,7 @@ class ShareRepoDialog extends React.Component {
|
||||
|
||||
handleSubmit = () => {
|
||||
if (this.state.selectedRepoList.length === 0) {
|
||||
let errMessage = gettext('Please select a library to share.')
|
||||
let errMessage = gettext('Please select a library to share.');
|
||||
this.setState({errMessage: errMessage});
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user