From dd88cd315cb6155c176638a79856f56758f43fc2 Mon Sep 17 00:00:00 2001 From: Rocio Perez-Cano Date: Tue, 29 Nov 2022 20:08:15 -0500 Subject: [PATCH] Style --- src/components/Picker/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Picker/index.js b/src/components/Picker/index.js index 175d501a505a..1b4d319d3bc6 100644 --- a/src/components/Picker/index.js +++ b/src/components/Picker/index.js @@ -1,5 +1,4 @@ import _ from 'underscore'; -import CONST from '../../CONST'; import React, {PureComponent} from 'react'; import {View} from 'react-native'; import PropTypes from 'prop-types'; @@ -8,6 +7,7 @@ import Icon from '../Icon'; import * as Expensicons from '../Icon/Expensicons'; import FormHelpMessage from '../FormHelpMessage'; import Text from '../Text'; +import CONST from '../../CONST'; import styles from '../../styles/styles'; import pickerStyles from './pickerStyles'; import getOperatingSystem from '../../libs/getOperatingSystem'; @@ -112,19 +112,19 @@ class Picker extends PureComponent { this.setDefaultValue(); // Windows will reuse the text color of the select for each one of the options - // so we might need to color accordingly so it does not blend with the background. + // so we might need to color accordingly so it doesn't blend with the background. if (getOperatingSystem() === CONST.OS.WINDOWS) { this.placeholder = { ...this.placeholder, color: '#002140', }; - this.items = this.items.map((item) => { - return { + this.items = _.map(this.items, item => ( + { ...item, color: '#002140', - }; - }); + } + )); } }