mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 03:11:07 +00:00
change select UI (#7178)
This commit is contained in:
@@ -5,7 +5,7 @@ import { gettext, isPro } from '../../utils/constants';
|
||||
import wikiAPI from '../../utils/wiki-api';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import toaster from '../toast';
|
||||
import { SeahubSelect, NoOptionsStyle } from '../common/select';
|
||||
import { SeahubSelect } from '../common/select';
|
||||
|
||||
const propTypes = {
|
||||
toggleCancel: PropTypes.func.isRequired,
|
||||
@@ -92,9 +92,6 @@ class ConvertWikiDialog extends React.Component {
|
||||
placeholder={gettext('Select a department')}
|
||||
maxMenuHeight={200}
|
||||
value={this.state.selectedOption}
|
||||
components={{ NoOptionsMessage: (
|
||||
<div style={NoOptionsStyle}>{gettext('No department')}</div>
|
||||
) }}
|
||||
noOptionsMessage={() => {return gettext('No options available');}}
|
||||
/>
|
||||
</>
|
||||
|
Reference in New Issue
Block a user