Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
pecanoro committed Nov 30, 2022
1 parent 71e3c90 commit dd88cd3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Picker/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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',
};
});
}
));
}
}

Expand Down

0 comments on commit dd88cd3

Please sign in to comment.