Skip to content

Commit 7d86a52

Browse files
fix styling
1 parent ff473b3 commit 7d86a52

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

Project/src/MakeCall/MakeCall.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,22 +1000,27 @@ this.callAgent.on('incomingCall', async (args) => {
10001000
}
10011001
{
10021002
this.state.activeCallDetails && !this.state.call && <MessageBar
1003-
messageBarType={MessageBarType.info}
1003+
messageBarType={MessageBarType.warning}
10041004
isMultiline={true}
10051005
onDismiss={() => { this.setState({ activeCallDetails: undefined }) }}
10061006
dismissButtonAriaLabel="Close">
10071007
<div className="ms-Grid-row">
1008-
<b>You're in an active call!</b>
1009-
<DefaultButton className="pl-2" onClick={async () => {
1010-
const callOptions = await this.getCallOptions({video: false, micMuted: false});
1011-
const newCall = await this.callAgent.activeCallTransfer(this.state.activeCallDetails, {isTransfer: true, joinCallOptions: callOptions});
1012-
this.setState({call: newCall});
1013-
}}>Transfer to this device</DefaultButton>
1014-
<DefaultButton className="pl-2" onClick={async () => {
1015-
const callOptions = await this.getCallOptions({video: false, micMuted: false});
1016-
const newCall = await this.callAgent.activeCallTransfer(this.state.activeCallDetails, {isTransfer: false, joinCallOptions: callOptions});
1017-
this.setState({call: newCall});
1018-
}}>Join here</DefaultButton>
1008+
<b className="ms-Grid-col">You're in an active call!</b>
1009+
<div className="ms-Grid-col">
1010+
<DefaultButton onClick={async () => {
1011+
const callOptions = await this.getCallOptions({video: false, micMuted: false});
1012+
const newCall = await this.callAgent.activeCallTransfer(this.state.activeCallDetails, {isTransfer: true, joinCallOptions: callOptions});
1013+
this.setState({call: newCall});
1014+
}}>Transfer to this device</DefaultButton>
1015+
</div>
1016+
<div className="ms-Grid-col">
1017+
<DefaultButton onClick={async () => {
1018+
const callOptions = await this.getCallOptions({video: false, micMuted: false});
1019+
const newCall = await this.callAgent.activeCallTransfer(this.state.activeCallDetails, {isTransfer: false, joinCallOptions: callOptions});
1020+
this.setState({call: newCall});
1021+
}}>Add this device</DefaultButton>
1022+
</div>
1023+
10191024
</div>
10201025
</MessageBar>
10211026
}

0 commit comments

Comments
 (0)