From c15fd3a3ba815443583ecdf14b070b746cfea695 Mon Sep 17 00:00:00 2001 From: tienifr Date: Wed, 24 Apr 2024 19:31:28 +0700 Subject: [PATCH] fix type --- src/libs/getIconForAction/index.ts | 2 +- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/getIconForAction/index.ts b/src/libs/getIconForAction/index.ts index 963c92640f39..820cf2687f02 100644 --- a/src/libs/getIconForAction/index.ts +++ b/src/libs/getIconForAction/index.ts @@ -4,7 +4,7 @@ import CONST from '@src/CONST'; const getIconForAction = (actionType: ValueOf) => { switch (actionType) { - case CONST.IOU.TYPE.TRACK_EXPENSE: + case CONST.IOU.TYPE.TRACK: return Expensicons.Coins; case CONST.IOU.TYPE.REQUEST: return Expensicons.Receipt; diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx index 3425942658c6..be0c61f822a5 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx @@ -100,7 +100,7 @@ const getQuickActionIcon = (action: QuickActionName): React.FC => { case CONST.QUICK_ACTIONS.TRACK_DISTANCE: case CONST.QUICK_ACTIONS.TRACK_MANUAL: case CONST.QUICK_ACTIONS.TRACK_SCAN: - return getIconForAction(CONST.IOU.TYPE.TRACK_EXPENSE); + return getIconForAction(CONST.IOU.TYPE.TRACK); default: return Expensicons.MoneyCircle; } @@ -295,7 +295,7 @@ function FloatingActionButtonAndPopover( ...(canUseTrackExpense && selfDMReportID ? [ { - icon: getIconForAction(CONST.IOU.TYPE.TRACK_EXPENSE), + icon: getIconForAction(CONST.IOU.TYPE.TRACK), text: translate('iou.trackExpense'), onSelected: () => interceptAnonymousUser(() =>