From 401f2c1470accf2a340f5898577adc3fca80aa18 Mon Sep 17 00:00:00 2001 From: Jakub Kosmydel <104823336+kosmydel@users.noreply.github.com> Date: Thu, 18 Jan 2024 07:35:55 +0100 Subject: [PATCH] fix back button (111) --- src/pages/NewChatSelectorPage.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/NewChatSelectorPage.js b/src/pages/NewChatSelectorPage.js index ba64ffec5a96..f41f2fa5bd3e 100755 --- a/src/pages/NewChatSelectorPage.js +++ b/src/pages/NewChatSelectorPage.js @@ -6,6 +6,7 @@ import TabSelector from '@components/TabSelector/TabSelector'; import withLocalize, {withLocalizePropTypes} from '@components/withLocalize'; import withWindowDimensions, {windowDimensionsPropTypes} from '@components/withWindowDimensions'; import compose from '@libs/compose'; +import Navigation from '@libs/Navigation/Navigation'; import OnyxTabNavigator, {TopTab} from '@libs/Navigation/OnyxTabNavigator'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; @@ -33,7 +34,10 @@ function NewChatSelectorPage(props) { shouldEnableMaxHeight testID={NewChatSelectorPage.displayName} > - + Navigation.dismissModal()} + /> ( @@ -59,7 +63,7 @@ function NewChatSelectorPage(props) { NewChatSelectorPage.propTypes = propTypes; NewChatSelectorPage.defaultProps = defaultProps; -NewChatSelectorPage.displayName = 'NewChatPage'; +NewChatSelectorPage.displayName = 'NewChatSelectorPage'; export default compose( withLocalize,