Skip to content

Commit

Permalink
fix: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Nov 30, 2023
1 parent 68ec96e commit 33d30a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/components/OptionsList/optionsListPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import PropTypes from 'prop-types';
import optionPropTypes from '@components/optionPropTypes';
import SectionList from '@components/SectionList';
import stylePropTypes from '@styles/stylePropTypes';
import styles from '@styles/styles';

const propTypes = {
/** option flexStyle for the options list container */
Expand Down Expand Up @@ -109,7 +108,7 @@ const defaultProps = {
optionHoveredStyle: undefined,
contentContainerStyles: [],
sectionHeaderStyle: undefined,
listContainerStyles: [styles.flex1],
listContainerStyles: [{flex: 1}],
sections: [],
focusedIndex: 0,
selectedOptions: [],
Expand Down
2 changes: 1 addition & 1 deletion src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ class BaseOptionsSelector extends Component {
const optionsList = (
<OptionsList
ref={(el) => (this.list = el)}
optionHoveredStyle={this.props.optionHoveredStyle}
optionHoveredStyle={this.props.optionHoveredStyle || this.props.themeStyles.hoveredComponentBG}
onSelectRow={this.props.onSelectRow ? this.selectRow : undefined}
sections={this.state.sections}
focusedIndex={this.state.focusedIndex}
Expand Down
3 changes: 1 addition & 2 deletions src/components/OptionsSelector/optionsSelectorPropTypes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import PropTypes from 'prop-types';
import optionPropTypes from '@components/optionPropTypes';
import stylePropTypes from '@styles/stylePropTypes';
import styles from '@styles/styles';
import CONST from '@src/CONST';

const propTypes = {
Expand Down Expand Up @@ -162,7 +161,7 @@ const defaultProps = {
onConfirmSelection: () => {},
shouldTextInputAppearBelowOptions: false,
footerContent: undefined,
optionHoveredStyle: styles.hoveredComponentBG,
optionHoveredStyle: undefined,
sectionHeaderStyle: undefined,
shouldShowOptions: true,
disableArrowKeysActions: false,
Expand Down
2 changes: 1 addition & 1 deletion src/styles/getTooltipStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {TextStyle, View, ViewStyle} from 'react-native';
import fontFamily from './fontFamily';
import roundToNearestMultipleOfFour from './roundToNearestMultipleOfFour';
import {ThemeStyles} from './styles';
import {ThemeColors} from "./themes/types";
import {ThemeColors} from './themes/types';
import positioning from './utilities/positioning';
import spacing from './utilities/spacing';
import variables from './variables';
Expand Down

0 comments on commit 33d30a9

Please sign in to comment.