mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
ref(TS) Remove ts-ignores (#11979)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user