mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 11:27:18 +00:00
remove react old defaultProps (#7576)
This commit is contained in:
@@ -104,7 +104,7 @@ class UserSelect extends React.Component {
|
||||
onChange={this.handleSelectChange}
|
||||
onInputChange={this.onInputChange}
|
||||
placeholder={this.props.placeholder}
|
||||
className={`user-select ${this.props.className}`}
|
||||
className={`user-select ${this.props.className || ''}`}
|
||||
value={this.props.value}
|
||||
ref={this.userSelect}
|
||||
styles={UserSelectStyle}
|
||||
@@ -115,8 +115,4 @@ class UserSelect extends React.Component {
|
||||
|
||||
UserSelect.propTypes = propTypes;
|
||||
|
||||
UserSelect.defaultProps = {
|
||||
className: ''
|
||||
};
|
||||
|
||||
export default UserSelect;
|
||||
|
Reference in New Issue
Block a user