diff --git a/bigbluebutton-html5/imports/ui/components/nav-bar/talking-indicator/component.jsx b/bigbluebutton-html5/imports/ui/components/nav-bar/talking-indicator/component.jsx index 07a6bca242..acfc94698a 100644 --- a/bigbluebutton-html5/imports/ui/components/nav-bar/talking-indicator/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/nav-bar/talking-indicator/component.jsx @@ -1,9 +1,7 @@ import React, { PureComponent } from 'react'; -import cx from 'classnames'; import _ from 'lodash'; import { defineMessages, injectIntl } from 'react-intl'; -import Button from '/imports/ui/components/button/component'; -import { styles } from './styles'; +import Styled from './styles'; import Service from './service'; const intlMessages = defineMessages({ @@ -60,15 +58,6 @@ class TalkingIndicator extends PureComponent { callerName, } = talkers[`${id}`]; - const style = { - [styles.talker]: true, - [styles.spoke]: !talking, - [styles.muted]: muted, - [styles.mobileHide]: sidebarNavigationIsOpen - && sidebarContentIsOpen, - [styles.isViewer]: !amIModerator, - }; - const ariaLabel = intl.formatMessage(talking ? intlMessages.isTalking : intlMessages.wasTalking, { 0: callerName, @@ -78,9 +67,12 @@ class TalkingIndicator extends PureComponent { icon = muted ? 'mute' : icon; return ( - + ); }); @@ -111,14 +103,6 @@ class TalkingIndicator extends PureComponent { const nobodyTalking = Service.nobodyTalking(talkers); - const style = { - [styles.talker]: true, - [styles.spoke]: nobodyTalking, - // [styles.muted]: false, - [styles.mobileHide]: sidebarNavigationIsOpen - && sidebarContentIsOpen, - }; - const { moreThanMaxIndicatorsTalking, moreThanMaxIndicatorsWereTalking } = intlMessages; const ariaLabel = intl.formatMessage(nobodyTalking @@ -127,9 +111,12 @@ class TalkingIndicator extends PureComponent { }); return ( -