@@ -243,88 +243,6 @@ function AdvancedSearchFilters() {
243
243
const [ cardList = { } ] = useOnyx ( ONYXKEYS . CARD_LIST ) ;
244
244
const taxRates = getAllTaxRates ( ) ;
245
245
const personalDetails = usePersonalDetails ( ) ;
246
-
247
- // const advancedFilters = useMemo(
248
- // () => [
249
- // {
250
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.DATE, translate),
251
- // description: 'common.date' as const,
252
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_DATE,
253
- // },
254
- // {
255
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.CURRENCY, translate),
256
- // description: 'common.currency' as const,
257
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_CURRENCY,
258
- // },
259
- // {
260
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.MERCHANT, translate),
261
- // description: 'common.merchant' as const,
262
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_MERCHANT,
263
- // },
264
- // {
265
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.DESCRIPTION, translate),
266
- // description: 'common.description' as const,
267
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_DESCRIPTION,
268
- // },
269
- // {
270
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.REPORT_ID, translate),
271
- // description: 'common.reportID' as const,
272
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_REPORT_ID,
273
- // },
274
- // {
275
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.AMOUNT, translate),
276
- // description: 'common.total' as const,
277
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_AMOUNT,
278
- // },
279
- // {
280
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.CATEGORY, translate),
281
- // description: 'common.category' as const,
282
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_CATEGORY,
283
- // },
284
- // {
285
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.KEYWORD, translate),
286
- // description: 'search.filters.hasKeywords' as const,
287
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_KEYWORD,
288
- // },
289
- // {
290
- // title: getFilterCardDisplayTitle(searchAdvancedFilters, cardList),
291
- // description: 'common.card' as const,
292
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_CARD,
293
- // shouldHide: Object.keys(cardList).length === 0,
294
- // },
295
- // {
296
- // title: getFilterTaxRateDisplayTitle(searchAdvancedFilters, taxRates),
297
- // description: 'workspace.taxes.taxRate' as const,
298
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_TAX_RATE,
299
- // },
300
- // {
301
- // title: getFilterExpenseDisplayTitle(searchAdvancedFilters, translate),
302
- // description: 'search.expenseType' as const,
303
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_EXPENSE_TYPE,
304
- // },
305
- // {
306
- // title: getFilterDisplayTitle(searchAdvancedFilters, CONST.SEARCH.SYNTAX_FILTER_KEYS.TAG, translate),
307
- // description: 'common.tag' as const,
308
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_TAG,
309
- // },
310
- // {
311
- // title: getFilterParticipantDisplayTitle(searchAdvancedFilters.from ?? [], personalDetails),
312
- // description: 'common.from' as const,
313
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_FROM,
314
- // },
315
- // {
316
- // title: getFilterParticipantDisplayTitle(searchAdvancedFilters.to ?? [], personalDetails),
317
- // description: 'common.to' as const,
318
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_TO,
319
- // },
320
- // {
321
- // title: getFilterInDisplayTitle(searchAdvancedFilters, translate, reports),
322
- // description: 'common.in' as const,
323
- // route: ROUTES.SEARCH_ADVANCED_FILTERS_IN,
324
- // },
325
- // ],
326
- // [searchAdvancedFilters, translate, cardList, taxRates, personalDetails, reports],
327
- // );
328
246
const currentType = searchAdvancedFilters ?. type ?? CONST . SEARCH . DATA_TYPES . EXPENSE ;
329
247
330
248
const onFormSubmit = ( ) => {
0 commit comments