From d10b8b8380d5dda90c776d322f49d2fc593cb515 Mon Sep 17 00:00:00 2001 From: Yevhenii Voloshchak Date: Mon, 30 May 2022 13:42:41 +0300 Subject: [PATCH] Cleanup --- .../VideoChatButtonAndMenu/BaseVideoChatButtonAndMenu.js | 2 +- src/components/VideoChatButtonAndMenu/index.android.js | 2 +- src/components/VideoChatButtonAndMenu/index.js | 2 ++ .../VideoChatButtonAndMenu/videoChatButtonAndMenuPropTypes.js | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/VideoChatButtonAndMenu/BaseVideoChatButtonAndMenu.js b/src/components/VideoChatButtonAndMenu/BaseVideoChatButtonAndMenu.js index 8184f47f777..f4fa0c7cad9 100755 --- a/src/components/VideoChatButtonAndMenu/BaseVideoChatButtonAndMenu.js +++ b/src/components/VideoChatButtonAndMenu/BaseVideoChatButtonAndMenu.js @@ -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); }, }, ]; diff --git a/src/components/VideoChatButtonAndMenu/index.android.js b/src/components/VideoChatButtonAndMenu/index.android.js index 8ae4a2ab94d..addd5035aea 100644 --- a/src/components/VideoChatButtonAndMenu/index.android.js +++ b/src/components/VideoChatButtonAndMenu/index.android.js @@ -8,7 +8,7 @@ import BaseVideoChatButtonAndMenu from './BaseVideoChatButtonAndMenu'; // https://github.com/Expensify/App/issues/8851#issuecomment-1120236904 const VideoChatButtonAndMenu = props => ( diff --git a/src/components/VideoChatButtonAndMenu/index.js b/src/components/VideoChatButtonAndMenu/index.js index 9b310e012da..b693424841a 100644 --- a/src/components/VideoChatButtonAndMenu/index.js +++ b/src/components/VideoChatButtonAndMenu/index.js @@ -1,9 +1,11 @@ import React from 'react'; +import CONST from '../../CONST'; import {propTypes, defaultProps} from './videoChatButtonAndMenuPropTypes'; import BaseVideoChatButtonAndMenu from './BaseVideoChatButtonAndMenu'; const VideoChatButtonAndMenu = props => ( diff --git a/src/components/VideoChatButtonAndMenu/videoChatButtonAndMenuPropTypes.js b/src/components/VideoChatButtonAndMenu/videoChatButtonAndMenuPropTypes.js index c129d4dd490..de6b5cb5aae 100644 --- a/src/components/VideoChatButtonAndMenu/videoChatButtonAndMenuPropTypes.js +++ b/src/components/VideoChatButtonAndMenu/videoChatButtonAndMenuPropTypes.js @@ -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,