Skip to content

Commit fdaca10

Browse files
change order
1 parent 0f3b7d8 commit fdaca10

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

src/pages/home/sidebar/FloatingActionButtonAndPopover.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,25 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu, isT
402402

403403
const menuItems = [
404404
...expenseMenuItems,
405+
...(isManualDistanceTrackingEnabled
406+
? [
407+
{
408+
icon: Expensicons.Location,
409+
text: translate('iou.trackDistance'),
410+
shouldCallAfterModalHide: shouldUseNarrowLayout,
411+
onSelected: () => {
412+
interceptAnonymousUser(() => {
413+
if (shouldRedirectToExpensifyClassic) {
414+
setModalVisible(true);
415+
return;
416+
}
417+
// Start the flow to start tracking a distance request
418+
return null;
419+
});
420+
},
421+
},
422+
]
423+
: []),
405424
...(shouldShowCreateReportOption
406425
? [
407426
{
@@ -444,25 +463,6 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu, isT
444463
},
445464
]
446465
: []),
447-
...(isManualDistanceTrackingEnabled
448-
? [
449-
{
450-
icon: Expensicons.Location,
451-
text: translate('iou.trackDistance'),
452-
shouldCallAfterModalHide: shouldUseNarrowLayout,
453-
onSelected: () => {
454-
interceptAnonymousUser(() => {
455-
if (shouldRedirectToExpensifyClassic) {
456-
setModalVisible(true);
457-
return;
458-
}
459-
// Start the flow to start tracking a distance request
460-
return null;
461-
});
462-
},
463-
},
464-
]
465-
: []),
466466
{
467467
icon: Expensicons.ChatBubble,
468468
text: translate('sidebarScreen.fabNewChat'),

0 commit comments

Comments
 (0)