Skip to content

Commit fb3ca5f

Browse files
authored
Merge pull request Expensify#68088 from samranahm/67445/arrow-on-option-with-subMenuItem
feat: Add arrowRight on option that contain sub menu items
2 parents 92e0649 + 7198160 commit fb3ca5f

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/MoneyReportHeader.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ function MoneyReportHeader({
778778

779779
const secondaryActionsImplementation: Record<
780780
ValueOf<typeof CONST.REPORT.SECONDARY_ACTIONS>,
781-
DropdownOption<ValueOf<typeof CONST.REPORT.SECONDARY_ACTIONS>> & Pick<PopoverMenuItem, 'backButtonText'>
781+
DropdownOption<ValueOf<typeof CONST.REPORT.SECONDARY_ACTIONS>> & Pick<PopoverMenuItem, 'backButtonText' | 'rightIcon'>
782782
> = {
783783
[CONST.REPORT.SECONDARY_ACTIONS.VIEW_DETAILS]: {
784784
value: CONST.REPORT.SECONDARY_ACTIONS.VIEW_DETAILS,
@@ -793,6 +793,7 @@ function MoneyReportHeader({
793793
text: translate('common.export'),
794794
backButtonText: translate('common.export'),
795795
icon: Expensicons.Export,
796+
rightIcon: Expensicons.ArrowRight,
796797
subMenuItems: secondaryExportActions.map((action) => exportSubmenuOptions[action as string]),
797798
},
798799
[CONST.REPORT.SECONDARY_ACTIONS.DOWNLOAD_PDF]: {
@@ -938,6 +939,7 @@ function MoneyReportHeader({
938939
text: translate('iou.addExpense'),
939940
backButtonText: translate('iou.addExpense'),
940941
icon: Expensicons.Plus,
942+
rightIcon: Expensicons.ArrowRight,
941943
value: CONST.REPORT.SECONDARY_ACTIONS.ADD_EXPENSE,
942944
subMenuItems: addExpenseDropdownOptions,
943945
onSelected: () => {

src/hooks/useSelectedTransactionsActions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ function useSelectedTransactionsActions({
230230
text: translate('common.export'),
231231
backButtonText: translate('common.export'),
232232
icon: Expensicons.Export,
233+
rightIcon: Expensicons.ArrowRight,
233234
subMenuItems: getExportOptions(),
234235
});
235236

src/pages/Search/SearchPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ function SearchPage({route}: SearchPageProps) {
222222
return exportOptions;
223223
};
224224

225-
const exportButtonOption: DropdownOption<SearchHeaderOptionValue> = {
225+
const exportButtonOption: DropdownOption<SearchHeaderOptionValue> & Pick<PopoverMenuItem, 'rightIcon'> = {
226226
icon: Expensicons.Export,
227+
rightIcon: Expensicons.ArrowRight,
227228
text: translate('common.export'),
228229
backButtonText: translate('common.export'),
229230
value: CONST.SEARCH.BULK_ACTION_TYPES.EXPORT,

0 commit comments

Comments
 (0)