()
| 32 | } |
| 33 | |
| 34 | render() { |
| 35 | const { active, className, selected } = this.props |
| 36 | const classes = cx( |
| 37 | useKeyOnly(active, 'active'), |
| 38 | useKeyOnly(selected, 'selected'), |
| 39 | 'icon', |
| 40 | className, |
| 41 | ) |
| 42 | const rest = getUnhandledProps(RatingIcon, this.props) |
| 43 | const ElementType = getElementType(RatingIcon, this.props) |
| 44 | |
| 45 | return ( |
| 46 | <ElementType |
| 47 | {...rest} |
| 48 | className={classes} |
| 49 | onClick={this.handleClick} |
| 50 | onKeyUp={this.handleKeyUp} |
| 51 | onMouseEnter={this.handleMouseEnter} |
| 52 | role='radio' |
| 53 | /> |
| 54 | ) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | RatingIcon.propTypes = { |
nothing calls this directly
no test coverage detected