Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eVoloshchak committed May 30, 2022
1 parent 3a2f24d commit d10b8b8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class BaseVideoChatButtonAndMenu extends Component {
text: props.translate('videoChatButtonAndMenu.googleMeet'),
onPress: () => {
this.toggleVideoChatMenu();
Linking.openURL(this.props.newGoogleMeetingUrl || CONST.NEW_GOOGLE_MEET_MEETING_URL);
Linking.openURL(this.props.googleMeetURL);
},
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/components/VideoChatButtonAndMenu/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import BaseVideoChatButtonAndMenu from './BaseVideoChatButtonAndMenu';
// https://github.com/Expensify/App/issues/8851#issuecomment-1120236904
const VideoChatButtonAndMenu = props => (
<BaseVideoChatButtonAndMenu
newGoogleMeetingUrl={CONST.GOOGLE_MEET_URL_ANDROID}
googleMeetURL={CONST.GOOGLE_MEET_URL_ANDROID}
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/components/VideoChatButtonAndMenu/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from 'react';
import CONST from '../../CONST';
import {propTypes, defaultProps} from './videoChatButtonAndMenuPropTypes';
import BaseVideoChatButtonAndMenu from './BaseVideoChatButtonAndMenu';

const VideoChatButtonAndMenu = props => (
<BaseVideoChatButtonAndMenu
googleMeetURL={CONST.NEW_GOOGLE_MEET_MEETING_URL}
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const propTypes = {
isConcierge: PropTypes.bool,

/** Link to open when user wants to create a new google meet meeting */
newGoogleMeetingUrl: PropTypes.string,
googleMeetURL: PropTypes.string.isRequired,

...withLocalizePropTypes,
...windowDimensionsPropTypes,
Expand Down

0 comments on commit d10b8b8

Please sign in to comment.