Skip to content

Commit

Permalink
Remove unused betas prop
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Aug 31, 2021
1 parent 3b34192 commit 773b68e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/LocalePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@ const propTypes = {
/** Indicates size of a picker component and whether to render the label or not */
size: PropTypes.oneOf(['normal', 'small']),

/** Beta features list */
betas: PropTypes.arrayOf(PropTypes.string),

...withLocalizePropTypes,
};

const defaultProps = {
preferredLocale: CONST.DEFAULT_LOCALE,
size: 'normal',
betas: [],
};

const localesToLanguages = {
Expand All @@ -41,7 +37,7 @@ const localesToLanguages = {

const LocalePicker = ({
// eslint-disable-next-line no-shadow
preferredLocale, translate, betas, size,
preferredLocale, translate, size,
}) => (
<ExpensiPicker
label={size === 'normal' ? translate('preferencesPage.language') : null}
Expand All @@ -66,8 +62,5 @@ export default compose(
preferredLocale: {
key: ONYXKEYS.NVP_PREFERRED_LOCALE,
},
betas: {
key: ONYXKEYS.BETAS,
},
}),
)(LocalePicker);

0 comments on commit 773b68e

Please sign in to comment.