File tree 1 file changed +2
-1
lines changed
src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import useLocalize from '@hooks/useLocalize';
12
12
import useTheme from '@hooks/useTheme' ;
13
13
import useThemeStyles from '@hooks/useThemeStyles' ;
14
14
import * as Session from '@libs/actions/Session' ;
15
+ import interceptAnonymousUser from '@libs/interceptAnonymousUser' ;
15
16
import getTopmostBottomTabRoute from '@libs/Navigation/getTopmostBottomTabRoute' ;
16
17
import getTopmostCentralPaneRoute from '@libs/Navigation/getTopmostCentralPaneRoute' ;
17
18
import Navigation from '@libs/Navigation/Navigation' ;
@@ -96,7 +97,7 @@ function BottomTabBar({isLoadingApp = false}: PurposeForUsingExpensifyModalProps
96
97
< Tooltip text = { translate ( 'common.search' ) } >
97
98
< PressableWithFeedback
98
99
onPress = { ( ) => {
99
- Navigation . navigate ( ROUTES . SEARCH . getRoute ( CONST . TAB_SEARCH . ALL ) ) ;
100
+ interceptAnonymousUser ( ( ) => Navigation . navigate ( ROUTES . SEARCH . getRoute ( CONST . TAB_SEARCH . ALL ) ) ) ;
100
101
} }
101
102
role = { CONST . ROLE . BUTTON }
102
103
accessibilityLabel = { translate ( 'common.search' ) }
You can’t perform that action at this time.
0 commit comments