mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
optimized code (#4304)
This commit is contained in:
@@ -2,7 +2,6 @@ import React, { Fragment } from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Button } from 'reactstrap';
|
import { Button } from 'reactstrap';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import makeAnimated from 'react-select/lib/animated';
|
|
||||||
import { gettext, isPro } from '../../utils/constants';
|
import { gettext, isPro } from '../../utils/constants';
|
||||||
import { seafileAPI } from '../../utils/seafile-api.js';
|
import { seafileAPI } from '../../utils/seafile-api.js';
|
||||||
import { Utils } from '../../utils/utils';
|
import { Utils } from '../../utils/utils';
|
||||||
@@ -306,7 +305,6 @@ class ShareToGroup extends React.Component {
|
|||||||
onChange={this.handleSelectChange}
|
onChange={this.handleSelectChange}
|
||||||
options={this.state.options}
|
options={this.state.options}
|
||||||
placeholder={gettext('Select groups...')}
|
placeholder={gettext('Select groups...')}
|
||||||
components={makeAnimated()}
|
|
||||||
maxMenuHeight={200}
|
maxMenuHeight={200}
|
||||||
inputId={'react-select-2-input'}
|
inputId={'react-select-2-input'}
|
||||||
value={this.state.selectedOption}
|
value={this.state.selectedOption}
|
||||||
|
Reference in New Issue
Block a user