From 6c17c476a01839440661d11463ba5518f3efa789 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 3 Jun 2024 17:40:30 -0600 Subject: [PATCH 1/2] temporarily disable queries --- src/pages/Search/SearchFilters.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/pages/Search/SearchFilters.tsx b/src/pages/Search/SearchFilters.tsx index 6026a4570a91..6ffed0b9d350 100644 --- a/src/pages/Search/SearchFilters.tsx +++ b/src/pages/Search/SearchFilters.tsx @@ -44,18 +44,18 @@ function SearchFilters({query}: SearchFiltersProps) { icon: Expensicons.Send, route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.SHARED), }, - { - title: translate('common.drafts'), - query: CONST.TAB_SEARCH.DRAFTS, - icon: Expensicons.Pencil, - route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.DRAFTS), - }, - { - title: translate('common.finished'), - query: CONST.TAB_SEARCH.FINISHED, - icon: Expensicons.CheckCircle, - route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.FINISHED), - }, + // { + // title: translate('common.drafts'), + // query: CONST.TAB_SEARCH.DRAFTS, + // icon: Expensicons.Pencil, + // route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.DRAFTS), + // }, + // { + // title: translate('common.finished'), + // query: CONST.TAB_SEARCH.FINISHED, + // icon: Expensicons.CheckCircle, + // route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.FINISHED), + // }, ]; const activeItemIndex = filterItems.findIndex((item) => item.query === query); From 3ac547fa344ab727fe741a2213090881f7b5b579 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 3 Jun 2024 18:43:57 -0600 Subject: [PATCH 2/2] rm code --- src/pages/Search/SearchFilters.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pages/Search/SearchFilters.tsx b/src/pages/Search/SearchFilters.tsx index 6ffed0b9d350..5ae942d3d466 100644 --- a/src/pages/Search/SearchFilters.tsx +++ b/src/pages/Search/SearchFilters.tsx @@ -44,18 +44,6 @@ function SearchFilters({query}: SearchFiltersProps) { icon: Expensicons.Send, route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.SHARED), }, - // { - // title: translate('common.drafts'), - // query: CONST.TAB_SEARCH.DRAFTS, - // icon: Expensicons.Pencil, - // route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.DRAFTS), - // }, - // { - // title: translate('common.finished'), - // query: CONST.TAB_SEARCH.FINISHED, - // icon: Expensicons.CheckCircle, - // route: ROUTES.SEARCH.getRoute(CONST.TAB_SEARCH.FINISHED), - // }, ]; const activeItemIndex = filterItems.findIndex((item) => item.query === query);