From 6b64ae82a239fff83f22e411662798704c70c3d7 Mon Sep 17 00:00:00 2001 From: Pedro Guerreiro Date: Fri, 18 Oct 2024 10:55:48 +0100 Subject: [PATCH] fix(debug mode): showing debug tab view when debug mode is disabled --- .../createCustomBottomTabNavigator/BottomTabBar.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx b/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx index e218a78eb190..5a49d9cff993 100644 --- a/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx +++ b/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx @@ -65,6 +65,7 @@ function BottomTabBar({selectedTab}: BottomTabBarProps) { const styles = useThemeStyles(); const {translate} = useLocalize(); const {activeWorkspaceID} = useActiveWorkspace(); + const [user] = useOnyx(ONYXKEYS.USER); const [reports] = useOnyx(ONYXKEYS.COLLECTION.REPORT); const [reportActions] = useOnyx(ONYXKEYS.COLLECTION.REPORT_ACTIONS); const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS); @@ -112,11 +113,13 @@ function BottomTabBar({selectedTab}: BottomTabBarProps) { return ( <> - + {user?.isDebugModeEnabled && ( + + )}