Skip to content

Commit

Permalink
Merge pull request #9315 from rushatgabhane/fix-console-error
Browse files Browse the repository at this point in the history
Fix console error caused by incorrect propTypes
  • Loading branch information
AndrewGable authored Jun 5, 2022
2 parents 50da22f + 63ac912 commit 99b2b85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, {Component} from 'react';
import {
View, Pressable, Dimensions, Linking,
} from 'react-native';
import PropTypes from 'prop-types';
import Icon from '../Icon';
import * as Expensicons from '../Icon/Expensicons';
import Popover from '../Popover';
Expand All @@ -12,13 +13,22 @@ import GoogleMeetIcon from '../../../assets/images/google-meet.svg';
import CONST from '../../CONST';
import styles from '../../styles/styles';
import themeColors from '../../styles/themes/default';
import withWindowDimensions from '../withWindowDimensions';
import withLocalize from '../withLocalize';
import withWindowDimensions, {windowDimensionsPropTypes} from '../withWindowDimensions';
import withLocalize, {withLocalizePropTypes} from '../withLocalize';
import compose from '../../libs/compose';
import Navigation from '../../libs/Navigation/Navigation';
import ROUTES from '../../ROUTES';
import Tooltip from '../Tooltip';
import {propTypes, defaultProps} from './videoChatButtonAndMenuPropTypes';
import {propTypes as videoChatButtonAndMenuPropTypes, defaultProps} from './videoChatButtonAndMenuPropTypes';

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

...videoChatButtonAndMenuPropTypes,
...withLocalizePropTypes,
...windowDimensionsPropTypes,
};

class BaseVideoChatButtonAndMenu extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
import PropTypes from 'prop-types';
import {windowDimensionsPropTypes} from '../withWindowDimensions';
import {withLocalizePropTypes} from '../withLocalize';

const propTypes = {
/** If this is the Concierge chat, we'll open the modal for requesting a setup call instead of showing popover menu */
isConcierge: PropTypes.bool,

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

...withLocalizePropTypes,
...windowDimensionsPropTypes,
};

const defaultProps = {
Expand Down

0 comments on commit 99b2b85

Please sign in to comment.