feat: tool tips in voice

This commit is contained in:
Tristan Yang
2023-04-03 10:42:06 +08:00
parent 5059cd61f1
commit aac464fa25
2 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ const RTCWidget = ({ id, context = "channel" }: Props) => {
</div>
{/* {voicingInfo && */}
<div className="flex gap-2 px-1">
<Tooltip tip={voicingInfo.muted ? t("undeafen") : t("deafen")} placement="top">
<Tooltip tip={voicingInfo.deafen ? t("undeafen") : t("deafen")} placement="top">
{voicingInfo.deafen ? <IconSoundOff role="button" onClick={setDeafen.bind(null, false)} /> : <IconSoundOn role="button" onClick={setDeafen.bind(null, true)} />}
</Tooltip>
<Tooltip tip={voicingInfo.muted ? t("unmute") : t("mute")} placement="top">