|
1 | 1 | import React from "react";
|
2 |
| -import { MessageBar, MessageBarType } from 'office-ui-fabric-react' |
| 2 | +import { MessageBar, MessageBarType } from '@fluentui/react' |
3 | 3 | import { FunctionalStreamRenderer as StreamRenderer } from "./FunctionalStreamRenderer";
|
4 | 4 | import AddParticipantPopover from "./AddParticipantPopover";
|
5 | 5 | import RemoteParticipantCard from "./RemoteParticipantCard";
|
6 |
| -import { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel'; |
| 6 | +import { Panel, PanelType } from '@fluentui/react/lib/Panel'; |
7 | 7 | import { Icon } from '@fluentui/react/lib/Icon';
|
8 | 8 | import LocalVideoPreviewCard from './LocalVideoPreviewCard';
|
9 |
| -import { Dropdown } from 'office-ui-fabric-react/lib/Dropdown'; |
| 9 | +import { Dropdown } from '@fluentui/react/lib/Dropdown'; |
10 | 10 | import { LocalVideoStream, Features, LocalAudioStream } from '@azure/communication-calling';
|
11 | 11 | import { utils } from '../Utils/Utils';
|
12 | 12 | import CustomVideoEffects from "./RawVideoAccess/CustomVideoEffects";
|
@@ -1545,18 +1545,7 @@ export default class CallCard extends React.Component {
|
1545 | 1545 | title = {`${this.state.canOnVideo ? (this.state.videoOn ? 'Turn your video off' : 'Turn your video on') : 'Video is disabled'}`}
|
1546 | 1546 | variant="secondary"
|
1547 | 1547 | onClick={() => this.handleVideoOnOff()}>
|
1548 |
| - { |
1549 |
| - this.state.canOnVideo && this.state.videoOn && |
1550 |
| - <Icon iconName="Video" /> |
1551 |
| - } |
1552 |
| - { |
1553 |
| - (this.state.canOnVideo && !this.state.videoOn) && |
1554 |
| - <Icon iconName="VideoOff2" /> |
1555 |
| - } |
1556 |
| - { |
1557 |
| - (!this.state.canOnVideo) && |
1558 |
| - <Icon iconName="VideoOff" /> |
1559 |
| - } |
| 1548 | + <Icon iconName={`${this.state.canOnVideo ? (this.state.videoOn ? 'Video' : 'VideoOff2') : 'VideoOff'}`} /> |
1560 | 1549 | </span>
|
1561 | 1550 | <span className="in-call-button"
|
1562 | 1551 | title={`${this.state.canUnMuteMic ? (this.state.micMuted ? 'Unmute your microphone' : 'Mute your microphone') : 'Microphone is disabled'}`}
|
|
0 commit comments