Skip to content

Commit

Permalink
Merge pull request #10763 from rushatgabhane/fix-console-error
Browse files Browse the repository at this point in the history
OptionsSelector - Fix console error
  • Loading branch information
tgolen authored Sep 8, 2022
2 parents afd2cee + ecde6fa commit f57b4f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Text from '../Text';
import compose from '../../libs/compose';
import CONST from '../../CONST';
import styles from '../../styles/styles';
import withLocalize from '../withLocalize';
import withLocalize, {withLocalizePropTypes} from '../withLocalize';
import TextInput from '../TextInput';
import ArrowKeyFocusManager from '../ArrowKeyFocusManager';
import KeyboardShortcut from '../../libs/KeyboardShortcut';
Expand All @@ -24,6 +24,7 @@ const propTypes = {
shouldDelayFocus: PropTypes.bool,

...optionsSelectorPropTypes,
...withLocalizePropTypes,
};

const defaultProps = {
Expand Down
3 changes: 0 additions & 3 deletions src/components/OptionsSelector/optionsSelectorPropTypes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import PropTypes from 'prop-types';
import optionPropTypes from '../optionPropTypes';
import {withLocalizePropTypes} from '../withLocalize';
import styles from '../../styles/styles';

const propTypes = {
Expand Down Expand Up @@ -93,8 +92,6 @@ const propTypes = {

/** Whether to show options list */
shouldShowOptions: PropTypes.bool,

...withLocalizePropTypes,
};

const defaultProps = {
Expand Down

0 comments on commit f57b4f0

Please sign in to comment.