@@ -3,23 +3,20 @@ import { components } from 'react-select';
3
3
import PropTypes from 'prop-types' ;
4
4
import clsx from 'clsx' ;
5
5
6
- const Option = props => {
7
- return (
8
- < div className = { clsx ( 'ddorg__pf3-component-mapper__select__option' , {
9
- 'ddorg__pf3-component-mapper__select__option--is-focused' : props . isFocused ,
10
- 'ddorg__pf3-component-mapper__select__option--is-selected' : props . isSelected ,
11
- } ) } >
12
- < components . Option { ...props } />
13
- { props . isSelected && ( props . selectProps && ! props . selectProps . isCheckbox ) && < i className = "selected-indicator fa fa-check" > </ i > }
14
- </ div >
15
- ) ;
16
- } ;
6
+ const Option = props => (
7
+ < div className = { clsx ( 'ddorg__pf3-component-mapper__select__option' , {
8
+ 'ddorg__pf3-component-mapper__select__option--is-focused' : props . isFocused ,
9
+ 'ddorg__pf3-component-mapper__select__option--is-selected' : props . isSelected ,
10
+ } ) } >
11
+ < components . Option { ...props } />
12
+ { props . isSelected && ( props . selectProps && ! props . selectProps . isCheckbox ) && < i className = "selected-indicator fa fa-check" > </ i > }
13
+ </ div >
14
+ ) ;
17
15
18
16
Option . propTypes = {
19
17
isFocused : PropTypes . bool ,
20
18
isSelected : PropTypes . bool ,
21
19
getStyles : PropTypes . func . isRequired ,
22
- selectOption : PropTypes . func ,
23
20
cx : PropTypes . func . isRequired ,
24
21
data : PropTypes . shape ( {
25
22
selected : PropTypes . bool ,
@@ -35,7 +32,6 @@ Option.propTypes = {
35
32
Option . defaultProps = {
36
33
isFocused : false ,
37
34
isSelected : false ,
38
- selectOption : ( ) => undefined ,
39
35
selectProps : {
40
36
isCheckbox : false ,
41
37
} ,
0 commit comments