Skip to content

Commit a233ce1

Browse files
committed
set a better naming
1 parent b81326c commit a233ce1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/OptionsSelectorWithSearch.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ const defaultProps = {
5050

5151
const greenCheckmark = {src: Expensicons.Checkmark, color: themeColors.success};
5252

53-
function filterOptions(searchValue, countries) {
53+
function filterOptions(searchValue, data) {
5454
const trimmedSearchValue = searchValue.trim();
5555
if (trimmedSearchValue.length === 0) {
5656
return [];
5757
}
5858

59-
return _.filter(countries, (country) => country.text.toLowerCase().includes(searchValue.toLowerCase()));
59+
return _.filter(data, (country) => country.text.toLowerCase().includes(searchValue.toLowerCase()));
6060
}
6161

62-
function CountrySelectorPage(props) {
62+
function OptionsSelectorWithSearch(props) {
6363
const [searchValue, setSearchValue] = useState('');
6464
const translate = props.translate;
6565
const initialOption = props.initialOption;
@@ -96,10 +96,10 @@ function CountrySelectorPage(props) {
9696
);
9797
}
9898

99-
CountrySelectorPage.propTypes = propTypes;
100-
CountrySelectorPage.defaultProps = defaultProps;
101-
CountrySelectorPage.displayName = 'CountrySelectorPage';
99+
OptionsSelectorWithSearch.propTypes = propTypes;
100+
OptionsSelectorWithSearch.defaultProps = defaultProps;
101+
OptionsSelectorWithSearch.displayName = 'OptionsSelectorWithSearch';
102102

103103
export {greenCheckmark};
104104

105-
export default withLocalize(CountrySelectorPage);
105+
export default withLocalize(OptionsSelectorWithSearch);

0 commit comments

Comments
 (0)