ref(TS) Remove ts-ignores (#11979)

This commit is contained in:
Robert Pintilii
2022-08-08 12:36:06 +03:00
committed by GitHub
parent 43578474a0
commit 8f5eabe1f2
16 changed files with 56 additions and 89 deletions

View File

@@ -2,6 +2,7 @@
import { withStyles } from '@material-ui/styles';
import clsx from 'clsx';
import React, { Component } from 'react';
import { WithTranslation } from 'react-i18next';
import { bindActionCreators } from 'redux';
import {
@@ -14,11 +15,9 @@ import {
import { IStore } from '../../../app/types';
import { isMobileBrowser } from '../../../base/environment/utils';
// @ts-ignore
import { translate } from '../../../base/i18n';
import { getLocalParticipant, hasRaisedHand } from '../../../base/participants/functions';
import { raiseHand } from '../../../base/participants/actions';
import { translate } from '../../../base/i18n/functions';
import { connect } from '../../../base/redux/functions';
import { Theme } from '../../../base/ui/types';
@@ -42,7 +41,7 @@ interface Classes {
overflow: string
}
type Props = {
interface Props extends WithTranslation {
/**
* Docks the toolbox.
@@ -87,13 +86,8 @@ type Props = {
/**
* Whether or not it's displayed in the overflow menu.
*/
overflowMenu: boolean,
/**
* Used for translation.
*/
t: Function
};
overflowMenu: boolean
}
const styles = (theme: Theme) => {
return {

View File

@@ -1,11 +1,10 @@
/* eslint-disable import/order */
import React, { useCallback } from 'react';
import { WithTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import { isMobileBrowser } from '../../../base/environment/utils';
// @ts-ignore
import { translate } from '../../../base/i18n';
import { translate } from '../../../base/i18n/functions';
import { IconArrowUp } from '../../../base/icons/svg/index';
import { connect } from '../../../base/redux/functions';
@@ -21,7 +20,7 @@ import RaiseHandButton from './RaiseHandButton';
import ReactionEmoji from './ReactionEmoji';
import ReactionsMenu from './ReactionsMenu';
type Props = {
interface Props extends WithTranslation {
/**
* Whether or not reactions are enabled.
@@ -62,13 +61,8 @@ type Props = {
/**
* The array of reactions to be displayed.
*/
reactionsQueue: Array<ReactionEmojiProps>,
/**
* Used for translation.
*/
t: Function
};
reactionsQueue: Array<ReactionEmojiProps>
}
/**
* Button used for the reactions menu.