Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -54,13 +54,11 @@ export const VoiceBroadcastHeader: React.FC<VoiceBroadcastHeaderProps> = ({
|
|||
const broadcast = showBroadcast && (
|
||||
<div className="mx_VoiceBroadcastHeader_line">
|
||||
<LiveIcon className="mx_Icon mx_Icon_16" />
|
||||
{ _t("Voice broadcast") }
|
||||
{_t("Voice broadcast")}
|
||||
</div>
|
||||
);
|
||||
|
||||
const liveBadge = live !== "not-live" && (
|
||||
<LiveBadge grey={live === "grey"} />
|
||||
);
|
||||
const liveBadge = live !== "not-live" && <LiveBadge grey={live === "grey"} />;
|
||||
|
||||
const closeButton = showClose && (
|
||||
<AccessibleButton onClick={onCloseClick}>
|
||||
|
@ -78,7 +76,7 @@ export const VoiceBroadcastHeader: React.FC<VoiceBroadcastHeaderProps> = ({
|
|||
const buffering = showBuffering && (
|
||||
<div className="mx_VoiceBroadcastHeader_line">
|
||||
<Spinner w={14} h={14} />
|
||||
{ _t("Buffering…") }
|
||||
{_t("Buffering…")}
|
||||
</div>
|
||||
);
|
||||
|
||||
|
@ -94,22 +92,22 @@ export const VoiceBroadcastHeader: React.FC<VoiceBroadcastHeaderProps> = ({
|
|||
title={_t("Change input device")}
|
||||
>
|
||||
<MicrophoneIcon className="mx_Icon mx_Icon_16" />
|
||||
<span>{ microphoneLabel }</span>
|
||||
<span>{microphoneLabel}</span>
|
||||
</AccessibleTooltipButton>
|
||||
);
|
||||
|
||||
return <div className="mx_VoiceBroadcastHeader">
|
||||
<RoomAvatar room={room} width={32} height={32} />
|
||||
<div className="mx_VoiceBroadcastHeader_content">
|
||||
<div className="mx_VoiceBroadcastHeader_room">
|
||||
{ room.name }
|
||||
return (
|
||||
<div className="mx_VoiceBroadcastHeader">
|
||||
<RoomAvatar room={room} width={32} height={32} />
|
||||
<div className="mx_VoiceBroadcastHeader_content">
|
||||
<div className="mx_VoiceBroadcastHeader_room">{room.name}</div>
|
||||
{microphoneLine}
|
||||
{timeLeftLine}
|
||||
{broadcast}
|
||||
{buffering}
|
||||
</div>
|
||||
{ microphoneLine }
|
||||
{ timeLeftLine }
|
||||
{ broadcast }
|
||||
{ buffering }
|
||||
{liveBadge}
|
||||
{closeButton}
|
||||
</div>
|
||||
{ liveBadge }
|
||||
{ closeButton }
|
||||
</div>;
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue