Merge pull request #13061 from ramonlsouza/remove-unused-code
refactor: remove unused imports/variables
This commit is contained in:
commit
7d3c4324d1
@ -336,7 +336,9 @@ class SmartLayout extends Component {
|
||||
|
||||
calculatesCameraDockBounds(mediaAreaBounds, mediaBounds, sidebarSize) {
|
||||
const { layoutContextState } = this.props;
|
||||
const { input, fullscreen, isRTL, deviceType } = layoutContextState;
|
||||
const {
|
||||
input, fullscreen, isRTL, deviceType,
|
||||
} = layoutContextState;
|
||||
const { presentation } = input;
|
||||
const { isOpen } = presentation;
|
||||
const { camerasMargin, presentationToolbarMinWidth } = DEFAULT_VALUES;
|
||||
@ -436,9 +438,6 @@ class SmartLayout extends Component {
|
||||
const { isOpen } = presentation;
|
||||
const mediaBounds = {};
|
||||
const { element: fullscreenElement } = fullscreen;
|
||||
const { camerasMargin } = DEFAULT_VALUES;
|
||||
|
||||
// TODO Adicionar min e max para a apresentação
|
||||
|
||||
if (!isOpen) {
|
||||
mediaBounds.width = 0;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { withTracker } from 'meteor/react-meteor-data';
|
||||
import React, { Fragment, useContext, useEffect } from 'react';
|
||||
import React, { useContext, useEffect } from 'react';
|
||||
import { defineMessages, injectIntl } from 'react-intl';
|
||||
import _ from 'lodash';
|
||||
import Auth from '/imports/ui/services/auth';
|
||||
|
@ -4,7 +4,6 @@ import { defineMessages, injectIntl } from 'react-intl';
|
||||
import _ from 'lodash';
|
||||
import { withModalMounter } from '/imports/ui/components/modal/service';
|
||||
import Button from '/imports/ui/components/button/component';
|
||||
import Dropdown from '/imports/ui/components/dropdown/component';
|
||||
import LockViewersContainer from '/imports/ui/components/lock-viewers/container';
|
||||
import GuestPolicyContainer from '/imports/ui/components/waiting-users/guest-policy/container';
|
||||
import BreakoutRoom from '/imports/ui/components/actions-bar/create-breakout-room/container';
|
||||
@ -362,7 +361,6 @@ class UserOptions extends PureComponent {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { isUserOptionsOpen } = this.state;
|
||||
const { intl } = this.props;
|
||||
|
||||
return (
|
||||
|
@ -2,10 +2,8 @@ import React, { Component } from 'react';
|
||||
import browserInfo from '/imports/utils/browserInfo';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import PropTypes from 'prop-types';
|
||||
import _ from 'lodash';
|
||||
import cx from 'classnames';
|
||||
import BBBMenu from "/imports/ui/components/menu/component";
|
||||
import ListItem from "@material-ui/core/ListItem";
|
||||
import BBBMenu from '/imports/ui/components/menu/component';
|
||||
import Icon from '/imports/ui/components/icon/component';
|
||||
import FullscreenService from '/imports/ui/components/fullscreen-button/service';
|
||||
import FullscreenButtonContainer from '/imports/ui/components/fullscreen-button/container';
|
||||
@ -185,7 +183,6 @@ class VideoListItem extends Component {
|
||||
const {
|
||||
videoIsReady,
|
||||
isStreamHealthy,
|
||||
isPortrait,
|
||||
} = this.state;
|
||||
const {
|
||||
name,
|
||||
@ -199,8 +196,6 @@ class VideoListItem extends Component {
|
||||
const shouldRenderReconnect = !isStreamHealthy && videoIsReady;
|
||||
|
||||
const { isFirefox } = browserInfo;
|
||||
const { isPhone } = deviceInfo;
|
||||
const isTethered = isPhone && isPortrait;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Fragment } from 'react';
|
||||
import React from 'react';
|
||||
import styles from './styles.scss';
|
||||
|
||||
const DropArea = ({ id, style }) => (
|
||||
|
Loading…
Reference in New Issue
Block a user