1
0
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:
Michael An
2025-03-10 14:27:08 +08:00
committed by GitHub
parent 00707d1d05
commit 55719ccbdf
43 changed files with 214 additions and 438 deletions

View File

@@ -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;