Skip to content

Commit

Permalink
Merge pull request #8866 from Expensify/tgolen-cleanup-videocall
Browse files Browse the repository at this point in the history
Remove unnecessary _.map in the code for video call menu items
  • Loading branch information
Luke9389 authored May 4, 2022
2 parents 429833d + 2180388 commit 411e59c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/VideoChatButtonAndMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,24 @@ class VideoChatButtonAndMenu extends Component {
this.toggleVideoChatMenu = this.toggleVideoChatMenu.bind(this);
this.measureVideoChatIconPosition = this.measureVideoChatIconPosition.bind(this);
this.videoChatIconWrapper = null;
this.menuItemData = _.map([
this.menuItemData = [
{
icon: ZoomIcon,
text: props.translate('videoChatButtonAndMenu.zoom'),
onPress: () => Linking.openURL(CONST.NEW_ZOOM_MEETING_URL),
onPress: () => {
this.toggleVideoChatMenu();
Linking.openURL(CONST.NEW_ZOOM_MEETING_URL);
},
},
{
icon: GoogleMeetIcon,
text: props.translate('videoChatButtonAndMenu.googleMeet'),
onPress: () => Linking.openURL(CONST.NEW_GOOGLE_MEET_MEETING_URL),
onPress: () => {
this.toggleVideoChatMenu();
Linking.openURL(CONST.NEW_GOOGLE_MEET_MEETING_URL);
},
},
], item => ({
...item,
onPress: () => {
item.onPress();
this.toggleVideoChatMenu();
},
}));
];

this.state = {
isVideoChatMenuActive: false,
Expand Down

0 comments on commit 411e59c

Please sign in to comment.