Skip to content

Commit

Permalink
Merge pull request #41469 from Expensify/alberto-icons
Browse files Browse the repository at this point in the history
Update Quick Action Button icons
  • Loading branch information
luacmartins authored May 2, 2024
2 parents f0bdf5b + 3f12ddf commit d03b4b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/libs/getIconForAction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const getIconForAction = (actionType: ValueOf<typeof CONST.IOU.TYPE>) => {
return Expensicons.Receipt;
case CONST.IOU.TYPE.SEND:
return Expensicons.Cash;
case CONST.IOU.TYPE.SPLIT:
return Expensicons.Transfer;
default:
return Expensicons.MoneyCircle;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,25 @@ const policySelector = (policy: OnyxEntry<OnyxTypes.Policy>): PolicySelector =>
const getQuickActionIcon = (action: QuickActionName): React.FC<SvgProps> => {
switch (action) {
case CONST.QUICK_ACTIONS.REQUEST_MANUAL:
return Expensicons.MoneyCircle;
return getIconForAction(CONST.IOU.TYPE.REQUEST);
case CONST.QUICK_ACTIONS.REQUEST_SCAN:
return Expensicons.ReceiptScan;
case CONST.QUICK_ACTIONS.REQUEST_DISTANCE:
return Expensicons.Car;
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:
return Expensicons.Task;
case CONST.QUICK_ACTIONS.TRACK_DISTANCE:
return Expensicons.Car;
case CONST.QUICK_ACTIONS.TRACK_MANUAL:
case CONST.QUICK_ACTIONS.TRACK_SCAN:
return getIconForAction(CONST.IOU.TYPE.TRACK);
case CONST.QUICK_ACTIONS.TRACK_SCAN:
return Expensicons.ReceiptScan;
default:
return Expensicons.MoneyCircle;
}
Expand Down

0 comments on commit d03b4b9

Please sign in to comment.