Skip to content

Commit 901ae31

Browse files
committed
use ACTION_TYPES rather than creating ACTION
1 parent 5aaf2ae commit 901ae31

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/CONST/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6557,6 +6557,7 @@ const CONST = {
65576557
PAY: 'pay',
65586558
DONE: 'done',
65596559
PAID: 'paid',
6560+
EXPORT_TO_ACCOUNTING: 'export',
65606561
},
65616562
BULK_ACTION_TYPES: {
65626563
EXPORT: 'export',
@@ -6588,10 +6589,6 @@ const CONST = {
65886589
NORMAL: 'normal',
65896590
WIDE: 'wide',
65906591
},
6591-
ACTION: {
6592-
PAY: 'pay',
6593-
EXPORT: 'export',
6594-
},
65956592
STATUS: {
65966593
EXPENSE: {
65976594
ALL: 'all',

src/libs/SearchUIUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ function createTypeMenuSections(session: OnyxTypes.Session | undefined, policies
13571357
const queryString = buildQueryStringFromFilterFormValues({
13581358
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
13591359
groupBy: CONST.SEARCH.GROUP_BY.REPORTS,
1360-
action: CONST.SEARCH.ACTION.PAY,
1360+
action: CONST.SEARCH.ACTION_TYPES.PAY,
13611361
reimbursable: CONST.SEARCH.BOOLEAN.YES,
13621362
payer: session.accountID?.toString(),
13631363
});
@@ -1379,7 +1379,7 @@ function createTypeMenuSections(session: OnyxTypes.Session | undefined, policies
13791379
getSearchQuery: () => {
13801380
const queryString = buildQueryStringFromFilterFormValues({
13811381
groupBy: CONST.SEARCH.GROUP_BY.REPORTS,
1382-
action: CONST.SEARCH.ACTION.EXPORT,
1382+
action: CONST.SEARCH.ACTION_TYPES.EXPORT_TO_ACCOUNTING,
13831383
exporter: [`${session.accountID}`],
13841384
exportedOn: CONST.SEARCH.NEVER,
13851385
});

0 commit comments

Comments
 (0)