From f84911bf10eb9ab604ca11e1e87ab7c85c4d9531 Mon Sep 17 00:00:00 2001 From: Wojciech Boman Date: Tue, 16 Apr 2024 15:38:00 +0200 Subject: [PATCH] Add SEARCH_QUERIES consts, hide new features --- src/CONST.ts | 6 ++++++ src/components/TestToolMenu.tsx | 11 +++++++++++ .../createCustomBottomTabNavigator/BottomTabBar.tsx | 9 +++++---- src/pages/Search/SearchPage.tsx | 2 +- src/pages/Search/SearchPageBottomTab.tsx | 9 +++++---- src/pages/Search/SearchResults.tsx | 9 ++++++--- 6 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index d23a7f695ddc..10c1b5679a8f 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -4345,6 +4345,12 @@ const CONST = { MAX_TAX_RATE_INTEGER_PLACES: 4, MAX_TAX_RATE_DECIMAL_PLACES: 4, + + SEARCH_QUERIES: { + ALL: 'all', + SENT: 'sent', + DRAFTS: 'drafts' + } } as const; type Country = keyof typeof CONST.ALL_COUNTRIES; diff --git a/src/components/TestToolMenu.tsx b/src/components/TestToolMenu.tsx index 5efa9592034f..3299b7e4f0c4 100644 --- a/src/components/TestToolMenu.tsx +++ b/src/components/TestToolMenu.tsx @@ -10,6 +10,7 @@ import * as Network from '@userActions/Network'; import * as Session from '@userActions/Session'; import * as User from '@userActions/User'; import CONFIG from '@src/CONFIG'; +import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; import type {Network as NetworkOnyx, User as UserOnyx} from '@src/types/onyx'; @@ -103,6 +104,16 @@ function TestToolMenu({user = USER_DEFAULT, network}: TestToolMenuProps) { }} /> + {/* Navigate to the new Search Page. This button is temporary and should be removed after passing QA tests. */} + +