@@ -50,16 +50,16 @@ const defaultProps = {
50
50
51
51
const greenCheckmark = { src : Expensicons . Checkmark , color : themeColors . success } ;
52
52
53
- function filterOptions ( searchValue , countries ) {
53
+ function filterOptions ( searchValue , data ) {
54
54
const trimmedSearchValue = searchValue . trim ( ) ;
55
55
if ( trimmedSearchValue . length === 0 ) {
56
56
return [ ] ;
57
57
}
58
58
59
- return _ . filter ( countries , ( country ) => country . text . toLowerCase ( ) . includes ( searchValue . toLowerCase ( ) ) ) ;
59
+ return _ . filter ( data , ( country ) => country . text . toLowerCase ( ) . includes ( searchValue . toLowerCase ( ) ) ) ;
60
60
}
61
61
62
- function CountrySelectorPage ( props ) {
62
+ function OptionsSelectorWithSearch ( props ) {
63
63
const [ searchValue , setSearchValue ] = useState ( '' ) ;
64
64
const translate = props . translate ;
65
65
const initialOption = props . initialOption ;
@@ -96,10 +96,10 @@ function CountrySelectorPage(props) {
96
96
) ;
97
97
}
98
98
99
- CountrySelectorPage . propTypes = propTypes ;
100
- CountrySelectorPage . defaultProps = defaultProps ;
101
- CountrySelectorPage . displayName = 'CountrySelectorPage ' ;
99
+ OptionsSelectorWithSearch . propTypes = propTypes ;
100
+ OptionsSelectorWithSearch . defaultProps = defaultProps ;
101
+ OptionsSelectorWithSearch . displayName = 'OptionsSelectorWithSearch ' ;
102
102
103
103
export { greenCheckmark } ;
104
104
105
- export default withLocalize ( CountrySelectorPage ) ;
105
+ export default withLocalize ( OptionsSelectorWithSearch ) ;
0 commit comments