mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
fix warnings (#3441)
This commit is contained in:
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||
import {gettext} from '../../utils/constants';
|
||||
import {seafileAPI} from '../../utils/seafile-api';
|
||||
import {Modal, ModalHeader, ModalBody, ModalFooter, Input, Button} from 'reactstrap';
|
||||
import toaster from "../toast";
|
||||
import toaster from '../toast';
|
||||
|
||||
class InvitePeopleDialog extends React.Component {
|
||||
|
||||
@@ -97,10 +97,12 @@ class InvitePeopleDialog extends React.Component {
|
||||
<ModalHeader toggle={this.props.toggleInvitePeopleDialog}>{gettext('Invite People')}</ModalHeader>
|
||||
<ModalBody>
|
||||
<label htmlFor="emails">{gettext('Emails')}</label>
|
||||
<Input type="text" id="emails" placeholder={gettext("Emails, separated by ','")}
|
||||
value={this.state.emails}
|
||||
onChange={this.handleEmailsChange}
|
||||
onKeyDown={this.handleKeyDown}
|
||||
<Input
|
||||
type="text" id="emails"
|
||||
placeholder={gettext("Emails, separated by ','")}
|
||||
value={this.state.emails}
|
||||
onChange={this.handleEmailsChange}
|
||||
onKeyDown={this.handleKeyDown}
|
||||
/>
|
||||
<span className="error">{this.state.errorMsg}</span>
|
||||
</ModalBody>
|
||||
|
@@ -70,7 +70,7 @@ class UpdateTagDialog extends React.Component {
|
||||
let repoID = this.props.repoID;
|
||||
seafileAPI.deleteRepoTag(repoID, tag.id).then((res) => {
|
||||
this.props.toggleCancel();
|
||||
if (res.data.success === "true") {
|
||||
if (res.data.success === 'true') {
|
||||
this.props.onDeleteRepoTag(tag.id);
|
||||
}
|
||||
});
|
||||
|
@@ -78,7 +78,6 @@ class DirListView extends React.Component {
|
||||
sortBy={this.props.sortBy}
|
||||
sortOrder={this.props.sortOrder}
|
||||
sortItems={this.props.sortItems}
|
||||
onAddFile={this.props.onAddFile}
|
||||
onItemClick={this.props.onItemClick}
|
||||
onItemSelected={this.props.onItemSelected}
|
||||
onItemDelete={this.props.onItemDelete}
|
||||
|
@@ -95,7 +95,7 @@ class MutipleDirOperationToolbar extends React.Component {
|
||||
|
||||
|
||||
if (dirent.type === 'dir') {
|
||||
let shareBtn = this.props.showShareBtn ? [SHARE] : []
|
||||
let shareBtn = this.props.showShareBtn ? [SHARE] : [];
|
||||
menuList = [...shareBtn];
|
||||
return menuList;
|
||||
}
|
||||
|
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom';
|
||||
import { Button } from 'reactstrap';
|
||||
import { Utils } from './utils/utils';
|
||||
import { seafileAPI } from './utils/seafile-api';
|
||||
import { siteRoot, gettext, PER_PAGE, filePath, fileName, historyRepoID, useNewAPI, canDownload, canCompare } from './utils/constants';
|
||||
import { gettext, PER_PAGE, filePath, fileName, historyRepoID, useNewAPI, canDownload, canCompare } from './utils/constants';
|
||||
import editUtilties from './utils/editor-utilties';
|
||||
import Loading from './components/loading';
|
||||
import Logo from './components/logo';
|
||||
|
Reference in New Issue
Block a user