Fix double-tooltips

This commit is contained in:
Michael Telatynski 2023-09-06 17:14:18 +01:00
parent 85be845f16
commit 5f0501a18a
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D

View file

@ -178,7 +178,7 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element {
<Tooltip label={!voiceCallDisabledReason ? _t("voip|voice_call") : voiceCallDisabledReason!}> <Tooltip label={!voiceCallDisabledReason ? _t("voip|voice_call") : voiceCallDisabledReason!}>
<IconButton <IconButton
disabled={!!voiceCallDisabledReason} disabled={!!voiceCallDisabledReason}
title={!voiceCallDisabledReason ? _t("voip|voice_call") : voiceCallDisabledReason!} aria-label={!voiceCallDisabledReason ? _t("voip|voice_call") : voiceCallDisabledReason!}
onClick={(evt) => { onClick={(evt) => {
evt.stopPropagation(); evt.stopPropagation();
placeCall(room, CallType.Voice, voiceCallType); placeCall(room, CallType.Voice, voiceCallType);
@ -191,7 +191,7 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element {
<Tooltip label={!videoCallDisabledReason ? _t("voip|video_call") : videoCallDisabledReason!}> <Tooltip label={!videoCallDisabledReason ? _t("voip|video_call") : videoCallDisabledReason!}>
<IconButton <IconButton
disabled={!!videoCallDisabledReason} disabled={!!videoCallDisabledReason}
title={!videoCallDisabledReason ? _t("voip|video_call") : videoCallDisabledReason!} aria-label={!videoCallDisabledReason ? _t("voip|video_call") : videoCallDisabledReason!}
onClick={(evt) => { onClick={(evt) => {
evt.stopPropagation(); evt.stopPropagation();
placeCall(room, CallType.Video, videoCallType); placeCall(room, CallType.Video, videoCallType);
@ -207,7 +207,7 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element {
evt.stopPropagation(); evt.stopPropagation();
showOrHidePanel(RightPanelPhases.ThreadPanel); showOrHidePanel(RightPanelPhases.ThreadPanel);
}} }}
title={_t("common|threads")} aria-label={_t("common|threads")}
> >
<ThreadsIcon /> <ThreadsIcon />
</IconButton> </IconButton>
@ -219,7 +219,7 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element {
evt.stopPropagation(); evt.stopPropagation();
showOrHidePanel(RightPanelPhases.NotificationPanel); showOrHidePanel(RightPanelPhases.NotificationPanel);
}} }}
title={_t("Notifications")} aria-label={_t("Notifications")}
> >
<NotificationsIcon /> <NotificationsIcon />
</IconButton> </IconButton>