feat: SVG icons

This commit is contained in:
Bettenbuk Zoltan
2019-08-30 18:39:06 +02:00
committed by Zoltan Bettenbuk
parent 738a199b4c
commit 8a3ddd8596
188 changed files with 2332 additions and 848 deletions

View File

@@ -7,6 +7,7 @@ import {
sendAnalytics
} from '../../../analytics';
import { translate } from '../../../base/i18n';
import { IconRemoteControlStart, IconRemoteControlStop } from '../../../base/icons';
import RemoteVideoMenuButton from './RemoteVideoMenuButton';
@@ -84,14 +85,14 @@ class RemoteControlButton extends Component<Props> {
switch (remoteControlState) {
case REMOTE_CONTROL_MENU_STATES.NOT_STARTED:
icon = 'icon-play';
icon = IconRemoteControlStart;
break;
case REMOTE_CONTROL_MENU_STATES.REQUESTING:
className = ' disabled';
icon = 'icon-play';
icon = IconRemoteControlStart;
break;
case REMOTE_CONTROL_MENU_STATES.STARTED:
icon = 'icon-stop';
icon = IconRemoteControlStop;
break;
case REMOTE_CONTROL_MENU_STATES.NOT_SUPPORTED:
@@ -104,7 +105,7 @@ class RemoteControlButton extends Component<Props> {
<RemoteVideoMenuButton
buttonText = { t('videothumbnail.remoteControl') }
displayClass = { className }
iconClass = { icon }
icon = { icon }
id = { `remoteControl_${participantID}` }
onClick = { this._onClick } />
);