From 9e63e59ed89bde6675500904eb27b20249dfcebd Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 4 Apr 2024 20:47:42 +0200 Subject: [PATCH 1/3] Add new case --- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js index 104deb818067..9a1a26185402 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js @@ -198,6 +198,9 @@ function FloatingActionButtonAndPopover(props) { case CONST.QUICK_ACTIONS.ASSIGN_TASK: Task.clearOutTaskInfoAndNavigate(props.quickAction.chatReportID, quickActionReport, _.get(props.quickAction, 'targetAccountID', 0)); return; + case CONST.QUICK_ACTIONS.TRACK_MANUAL: + IOU.startMoneyRequest(CONST.IOU.TYPE.SEND, props.quickAction.chatReportID); + return; default: return ''; } From c0e80f7d1e43a9ca5eae47fc185ad4cd06cc2ae2 Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 10 Apr 2024 16:58:04 +0200 Subject: [PATCH 2/3] Add Track functionality --- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx index 852274a25749..36eb630fb931 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx @@ -182,7 +182,10 @@ function FloatingActionButtonAndPopover( Task.clearOutTaskInfoAndNavigate(quickAction?.chatReportID, quickActionReport, quickAction.targetAccountID ?? 0); break; case CONST.QUICK_ACTIONS.TRACK_MANUAL: - IOU.startMoneyRequest(CONST.IOU.TYPE.REQUEST, quickAction?.chatReportID ?? '', CONST.IOU.REQUEST_TYPE.MANUAL); + IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, quickAction?.chatReportID ?? '', CONST.IOU.REQUEST_TYPE.MANUAL); + break; + case CONST.QUICK_ACTIONS.TRACK_SCAN: + IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, quickAction?.chatReportID ?? '', CONST.IOU.REQUEST_TYPE.SCAN); break; default: } From 5ba0446e9a02f9f80de2bf09f3d9678f81979ae8 Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 16 Apr 2024 11:36:12 +0200 Subject: [PATCH 3/3] add distance --- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx index ee44a312882f..212bf93166a1 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx @@ -187,6 +187,9 @@ function FloatingActionButtonAndPopover( case CONST.QUICK_ACTIONS.TRACK_SCAN: IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, quickAction?.chatReportID ?? '', CONST.IOU.REQUEST_TYPE.SCAN); break; + case CONST.QUICK_ACTIONS.TRACK_DISTANCE: + IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, quickAction?.chatReportID ?? '', CONST.IOU.REQUEST_TYPE.DISTANCE); + break; default: } };