Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref(toolbar): remove old InviteButton
Leonard Kima783939f12bc
diff --git a/react/features/invite/components/InviteButton.web.js b/react/features/invite/components/InviteButton.web.jsdeleted file mode 100644index efbb54c273..0000000000--- a/react/features/invite/components/InviteButton.web.js+++ /dev/null@@ -1,87 +0,0 @@-import PropTypes from 'prop-types';-import React, { Component } from 'react';-import { connect } from 'react-redux';-import Button from '@atlaskit/button';--import { openDialog } from '../../base/dialog';-import { translate } from '../../base/i18n';-import { AddPeopleDialog } from '.';--/**- * The button that provides different invite options.- */-class InviteButton extends Component {- /**- * {@code InviteButton}'s property types.- *- * @static- */- static propTypes = {- /**- * Invoked to open {@code AddPeopleDialog}.- */- dispatch: PropTypes.func,-- /**- * Indicates if the "Add to call" feature is available.- */- enableAddPeople: PropTypes.bool,-- /**- * Indicates if the "Dial out" feature is available.- */- enableDialOut: PropTypes.bool,-- /**- * Invoked to obtain translated strings.- */- t: PropTypes.func- };-- /**- * Initializes a new {@code InviteButton} instance.- *- * @param {Object} props - The read-only properties with which the new- * instance is to be initialized.- */- constructor(props) {- super(props);-- // Bind event handler so it is only bound once for every instance.- this._onClick = this._onClick.bind(this);- }-- /**- * Renders the content of this component.- *- * @returns {ReactElement}- */- render() {- return (- <div className = 'filmstrip__invite'>- <div className = 'invite-button-group'>- <Button- onClick = { this._onClick }- shouldFitContainer = { true }>- { this.props.t('addPeople.invite') }- </Button>- </div>- </div>- );- }-- /**- * Opens {@code AddPeopleDialog}.- *- * @private- * @returns {void}- */- _onClick() {- this.props.dispatch(openDialog(AddPeopleDialog, {- enableAddPeople: this.props.enableAddPeople,- enableDialOut: this.props.enableDialOut- }));- }-}--export default translate(connect()(InviteButton));diff --git a/react/features/invite/components/index.js b/react/features/invite/components/index.jsindex e4c747f0bd..e32c31d964 100644--- a/react/features/invite/components/index.js+++ b/react/features/invite/components/index.js@@ -1,4 +1,3 @@export { default as AddPeopleDialog } from './AddPeopleDialog';export { default as InfoDialogButton } from './InfoDialogButton';-export { default as InviteButton } from './InviteButton';export { DialInSummary } from './dial-in-summary';