diff --git a/frontend/src/components/dialog/manage-members-dialog.js b/frontend/src/components/dialog/manage-members-dialog.js index c2df221987..f69e0f69c1 100644 --- a/frontend/src/components/dialog/manage-members-dialog.js +++ b/frontend/src/components/dialog/manage-members-dialog.js @@ -1,5 +1,4 @@ import React from 'react'; -import AsyncSelect from 'react-select/lib/Async'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Table } from 'reactstrap'; diff --git a/frontend/src/shared-file-view-text.js b/frontend/src/shared-file-view-text.js index 7234b19288..9ddb298e9c 100644 --- a/frontend/src/shared-file-view-text.js +++ b/frontend/src/shared-file-view-text.js @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom'; import Account from './components/common/account'; import CodeMirror from 'react-codemirror'; import { Button } from 'reactstrap'; -import { seafileAPI } from './utils/seafile-api'; import { Utils } from './utils/utils'; import watermark from 'watermark-dom'; import { serviceURL, gettext, siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from './utils/constants'; @@ -51,18 +50,18 @@ class SharedFileViewText extends React.Component { } fileEncode = () => { - const list = fileEncodingList.substring(1, fileEncodingList.length - 1).replace(/\'*/g,"").replace(/\s*/g,"").split(','); + const list = fileEncodingList.substring(1, fileEncodingList.length - 1).replace(/\'*/g,'').replace(/\s*/g,'').split(','); return (