1
0
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:
杨顺强
2019-03-04 15:53:12 +08:00
committed by Daniel Pan
parent 6ca920db64
commit 9498551ca2
6 changed files with 39 additions and 141 deletions

View File

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