ref(TS) Convert some components to TS (#13129)

This commit is contained in:
Robert Pintilii
2023-03-30 11:27:53 +03:00
committed by GitHub
parent 570ae81a37
commit 206a4afd76
74 changed files with 762 additions and 1040 deletions

View File

@@ -1,28 +1,16 @@
// @flow
import { connect } from 'react-redux';
import { createToolbarEvent, sendAnalytics } from '../../../../analytics';
import { translate } from '../../../../base/i18n';
import { IconAddUser } from '../../../../base/icons';
import { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';
import { createToolbarEvent } from '../../../../analytics/AnalyticsEvents';
import { sendAnalytics } from '../../../../analytics/functions';
import { translate } from '../../../../base/i18n/functions';
import { IconAddUser } from '../../../../base/icons/svg';
import AbstractButton, { IProps as AbstractButtonProps } from '../../../../base/toolbox/components/AbstractButton';
import { beginAddPeople } from '../../../actions.any';
/**
* The type of the React {@code Component} props of {@link EmbedMeetingButton}.
*/
type Props = AbstractButtonProps & {
/**
* The redux {@code dispatch} function.
*/
dispatch: Function
};
/**
* Implementation of a button for opening invite people dialog.
*/
class InviteButton extends AbstractButton<Props, *> {
class InviteButton extends AbstractButton<AbstractButtonProps> {
accessibilityLabel = 'toolbar.accessibilityLabel.invite';
icon = IconAddUser;
label = 'toolbar.invite';