diff --git a/src/pages/NewChatSelectorPage.js b/src/pages/NewChatSelectorPage.js index 89a3fd1adc72..ce0bbda0d239 100755 --- a/src/pages/NewChatSelectorPage.js +++ b/src/pages/NewChatSelectorPage.js @@ -1,4 +1,5 @@ import React from 'react'; +import {withOnyx} from 'react-native-onyx'; import OnyxTabNavigator, {TopTab} from '../libs/Navigation/OnyxTabNavigator'; import TabSelector from '../components/TabSelector/TabSelector'; import Navigation from '../libs/Navigation/Navigation'; @@ -6,6 +7,7 @@ import Permissions from '../libs/Permissions'; import NewChatPage from './NewChatPage'; import WorkspaceNewRoomPage from './workspace/WorkspaceNewRoomPage'; import CONST from '../CONST'; +import ONYXKEYS from '../ONYXKEYS'; import withWindowDimensions, {windowDimensionsPropTypes} from '../components/withWindowDimensions'; import HeaderWithBackButton from '../components/HeaderWithBackButton'; import ScreenWrapper from '../components/ScreenWrapper'; @@ -66,4 +68,10 @@ NewChatSelectorPage.propTypes = propTypes; NewChatSelectorPage.defaultProps = defaultProps; NewChatSelectorPage.displayName = 'NewChatPage'; -export default compose(withLocalize, withWindowDimensions)(NewChatSelectorPage); +export default compose( + withLocalize, + withWindowDimensions, + withOnyx({ + betas: {key: ONYXKEYS.BETAS}, + }), +)(NewChatSelectorPage);