1
0
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:
Michael An
2024-12-14 13:17:21 +08:00
committed by GitHub
parent de925b1e21
commit f07dfc65cb
6 changed files with 10 additions and 18 deletions

View File

@@ -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');}}
/>
</>