mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat: Adds ts rule noImplicitOverride and fix errors.
This commit is contained in:
@@ -138,7 +138,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {
|
||||
* @inheritdoc
|
||||
* @returns {void}
|
||||
*/
|
||||
componentDidMount() {
|
||||
override componentDidMount() {
|
||||
const { navigation, t } = this.props;
|
||||
|
||||
navigation.setOptions({
|
||||
@@ -157,7 +157,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {
|
||||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
componentDidUpdate(prevProps: IProps) {
|
||||
override componentDidUpdate(prevProps: IProps) {
|
||||
const { navigation, t } = this.props;
|
||||
|
||||
navigation.setOptions({
|
||||
@@ -183,7 +183,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {
|
||||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
render() {
|
||||
override render() {
|
||||
const {
|
||||
_addPeopleEnabled,
|
||||
_dialOutEnabled
|
||||
|
||||
@@ -11,10 +11,10 @@ import { beginAddPeople } from '../../../actions.any';
|
||||
* Implementation of a button for opening invite people dialog.
|
||||
*/
|
||||
class InviteButton extends AbstractButton<AbstractButtonProps> {
|
||||
accessibilityLabel = 'toolbar.accessibilityLabel.invite';
|
||||
icon = IconAddUser;
|
||||
label = 'toolbar.invite';
|
||||
tooltip = 'toolbar.invite';
|
||||
override accessibilityLabel = 'toolbar.accessibilityLabel.invite';
|
||||
override icon = IconAddUser;
|
||||
override label = 'toolbar.invite';
|
||||
override tooltip = 'toolbar.invite';
|
||||
|
||||
/**
|
||||
* Handles clicking / pressing the button, and opens the appropriate dialog.
|
||||
@@ -22,7 +22,7 @@ class InviteButton extends AbstractButton<AbstractButtonProps> {
|
||||
* @protected
|
||||
* @returns {void}
|
||||
*/
|
||||
_handleClick() {
|
||||
override _handleClick() {
|
||||
const { dispatch } = this.props;
|
||||
|
||||
sendAnalytics(createToolbarEvent('invite'));
|
||||
|
||||
@@ -84,7 +84,7 @@ class InviteContactsForm extends AbstractAddPeopleDialog<IProps, IState> {
|
||||
_sipInviteEnabled: string;
|
||||
};
|
||||
|
||||
state = {
|
||||
override state = {
|
||||
addToCallError: false,
|
||||
addToCallInProgress: false,
|
||||
inviteItems: [] as IInviteSelectItem[]
|
||||
@@ -133,7 +133,7 @@ class InviteContactsForm extends AbstractAddPeopleDialog<IProps, IState> {
|
||||
* @param {State} prevState - The state object before the update.
|
||||
* @returns {void}
|
||||
*/
|
||||
componentDidUpdate(prevProps: IProps, prevState: IState) {
|
||||
override componentDidUpdate(prevProps: IProps, prevState: IState) {
|
||||
/**
|
||||
* Clears selected items from the multi select component on successful
|
||||
* invite.
|
||||
@@ -151,7 +151,7 @@ class InviteContactsForm extends AbstractAddPeopleDialog<IProps, IState> {
|
||||
*
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
override render() {
|
||||
const {
|
||||
_addPeopleEnabled,
|
||||
_dialOutEnabled,
|
||||
|
||||
@@ -47,7 +47,7 @@ class CalleeInfo extends Component<IProps> {
|
||||
* @inheritdoc
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
override render() {
|
||||
const {
|
||||
id,
|
||||
name,
|
||||
|
||||
@@ -32,7 +32,7 @@ class CalleeInfoContainer extends Component<IProps> {
|
||||
* @inheritdoc
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
override render() {
|
||||
return this.props._calleeInfoVisible ? <CalleeInfo /> : null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ class DialInSummary extends PureComponent<IProps> {
|
||||
* @inheritdoc
|
||||
* @returns {void}
|
||||
*/
|
||||
componentDidMount() {
|
||||
override componentDidMount() {
|
||||
const { navigation, t } = this.props;
|
||||
|
||||
navigation.setOptions({
|
||||
@@ -68,7 +68,7 @@ class DialInSummary extends PureComponent<IProps> {
|
||||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
render() {
|
||||
override render() {
|
||||
const { route } = this.props;
|
||||
const summaryUrl = route.params?.summaryUrl;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class DialInSummaryErrorDialog extends Component<WithTranslation> {
|
||||
* @inheritdoc
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
override render() {
|
||||
return (
|
||||
<AlertDialog
|
||||
contentKey = 'info.dialInSummaryError' />
|
||||
|
||||
@@ -115,7 +115,7 @@ const styles = (theme: Theme) => {
|
||||
* @augments Component
|
||||
*/
|
||||
class DialInSummary extends Component<IProps, State> {
|
||||
state = {
|
||||
override state = {
|
||||
conferenceID: null,
|
||||
error: '',
|
||||
loading: true,
|
||||
@@ -146,7 +146,7 @@ class DialInSummary extends Component<IProps, State> {
|
||||
* @inheritdoc
|
||||
* @returns {void}
|
||||
*/
|
||||
componentDidMount() {
|
||||
override componentDidMount() {
|
||||
const getNumbers = this._getNumbers()
|
||||
.then(this._onGetNumbersSuccess)
|
||||
.catch(this._setErrorMessage);
|
||||
@@ -167,7 +167,7 @@ class DialInSummary extends Component<IProps, State> {
|
||||
* @inheritdoc
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
override render() {
|
||||
let className = '';
|
||||
let contents;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ export default class DialInSummaryApp extends BaseApp<any> {
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
async componentDidMount() {
|
||||
override async componentDidMount() {
|
||||
await super.componentDidMount();
|
||||
|
||||
// @ts-ignore
|
||||
@@ -51,7 +51,7 @@ export default class DialInSummaryApp extends BaseApp<any> {
|
||||
*
|
||||
* @override
|
||||
*/
|
||||
_createMainElement(component: ComponentType<any>, props: Object) {
|
||||
override _createMainElement(component: ComponentType<any>, props: Object) {
|
||||
return (
|
||||
<JitsiThemeProvider>
|
||||
<GlobalStyles />
|
||||
@@ -65,7 +65,7 @@ export default class DialInSummaryApp extends BaseApp<any> {
|
||||
*
|
||||
* @returns {React$Element}
|
||||
*/
|
||||
_renderDialogContainer() {
|
||||
override _renderDialogContainer() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user