Skip to content

Commit

Permalink
use function for base ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonals committed May 2, 2024
1 parent 292d4d2 commit c051a1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const policySelector = (policy: OnyxEntry<OnyxTypes.Policy>): PolicySelector =>
const getQuickActionIcon = (action: QuickActionName): React.FC<SvgProps> => {
switch (action) {
case CONST.QUICK_ACTIONS.REQUEST_MANUAL:
return Expensicons.Receipt;
return getIconForAction(CONST.IOU.TYPE.REQUEST);
case CONST.QUICK_ACTIONS.REQUEST_SCAN:
return Expensicons.ReceiptScan;
case CONST.QUICK_ACTIONS.REQUEST_DISTANCE:
Expand All @@ -114,7 +114,7 @@ const getQuickActionIcon = (action: QuickActionName): React.FC<SvgProps> => {
case CONST.QUICK_ACTIONS.TRACK_DISTANCE:
return Expensicons.Car;
case CONST.QUICK_ACTIONS.TRACK_MANUAL:
return Expensicons.Coins;
return getIconForAction(CONST.IOU.TYPE.TRACK);
case CONST.QUICK_ACTIONS.TRACK_SCAN:
return Expensicons.ReceiptScan;
default:
Expand Down

0 comments on commit c051a1a

Please sign in to comment.