mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 23:48:47 +00:00
replace code to user-select component (#3033)
This commit is contained in:
@@ -8,7 +8,7 @@ const propTypes = {
|
||||
placeholder: PropTypes.string.isRequired,
|
||||
onSelectChange: PropTypes.func.isRequired,
|
||||
isMulti: PropTypes.bool.isRequired,
|
||||
className: PropTypes.string.isRequired,
|
||||
className: PropTypes.string,
|
||||
};
|
||||
|
||||
const NoOptionsMessage = (props) => {
|
||||
@@ -65,7 +65,7 @@ class UserSelect extends React.Component {
|
||||
loadOptions={this.loadOptions}
|
||||
onChange={this.handleSelectChange}
|
||||
placeholder={this.props.placeholder}
|
||||
className={this.props.className}
|
||||
className={`user-select ${this.props.className}`}
|
||||
ref="userSelect"
|
||||
/>
|
||||
);
|
||||
|
Reference in New Issue
Block a user