Skip to content

Commit

Permalink
Merge pull request #38348 from Expensify/cmartins-fixTitle
Browse files Browse the repository at this point in the history
[CP Staging] Fix share somewhere title
  • Loading branch information
yuwenmemon authored Mar 14, 2024
2 parents aca0f8c + 2d346d6 commit 21a6a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ type MenuItemBaseProps = {
onSecondaryInteraction?: (event: GestureResponderEvent | MouseEvent) => void;

/** Array of objects that map display names to their corresponding tooltip */
titleWithTooltips?: DisplayNameWithTooltip[];
titleWithTooltips?: DisplayNameWithTooltip[] | undefined;

/** Icon should be displayed in its own color */
displayInDefaultIconColor?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/NewTaskPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function NewTaskPage({task, reports, personalDetails}: NewTaskPageProps) {
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_SHARE_DESTINATION)}
interactive={!task?.parentReportID}
shouldShowRightIcon={!task?.parentReportID}
titleWithTooltips={shareDestination?.shouldUseFullTitleToDisplay ? shareDestination?.displayNamesWithTooltips : []}
titleWithTooltips={shareDestination?.shouldUseFullTitleToDisplay ? undefined : shareDestination?.displayNamesWithTooltips}
/>
</View>
</View>
Expand Down

0 comments on commit 21a6a8b

Please sign in to comment.