From 3f12ddfac7d6e6a1fec289df652eb7a9fa350110 Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 2 May 2024 10:33:44 +0900 Subject: [PATCH] update function for Split --- src/libs/getIconForAction/index.ts | 2 ++ .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/getIconForAction/index.ts b/src/libs/getIconForAction/index.ts index 820cf2687f02..ffe3dd8b76f2 100644 --- a/src/libs/getIconForAction/index.ts +++ b/src/libs/getIconForAction/index.ts @@ -10,6 +10,8 @@ const getIconForAction = (actionType: ValueOf) => { return Expensicons.Receipt; case CONST.IOU.TYPE.SEND: return Expensicons.Cash; + case CONST.IOU.TYPE.SPLIT: + return Expensicons.Transfer; default: return Expensicons.MoneyCircle; } diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx index eb1a6a0d0085..bc7b49f94c91 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx @@ -106,7 +106,7 @@ const getQuickActionIcon = (action: QuickActionName): React.FC => { case CONST.QUICK_ACTIONS.SPLIT_MANUAL: case CONST.QUICK_ACTIONS.SPLIT_SCAN: case CONST.QUICK_ACTIONS.SPLIT_DISTANCE: - return Expensicons.Transfer; + return getIconForAction(CONST.IOU.TYPE.SPLIT); case CONST.QUICK_ACTIONS.SEND_MONEY: return getIconForAction(CONST.IOU.TYPE.SEND); case CONST.QUICK_ACTIONS.ASSIGN_TASK: