This commit is contained in:
Half-Shot 2024-11-19 16:48:46 +00:00
parent 196f84bb28
commit 8a53623bc3

View File

@ -74,9 +74,7 @@ export function ReactionPopupMenu({
() => (isFullyExpanded ? ReactionSet : ReactionSet.slice(0, 5)), () => (isFullyExpanded ? ReactionSet : ReactionSet.slice(0, 5)),
[isFullyExpanded], [isFullyExpanded],
); );
const label = isHandRaised const label = isHandRaised ? t("action.lower_hand") : t("action.raise_hand");
? t("action.lower_hand", { keyboardShortcut: "H" })
: t("action.raise_hand", { keyboardShortcut: "H" });
return ( return (
<> <>
{errorText && ( {errorText && (
@ -90,7 +88,7 @@ export function ReactionPopupMenu({
)} )}
<div className={styles.reactionPopupMenu}> <div className={styles.reactionPopupMenu}>
<section className={styles.handRaiseSection}> <section className={styles.handRaiseSection}>
<Tooltip label={label} caption={"H"}> <Tooltip label={label} caption="H">
<CpdButton <CpdButton
kind={isHandRaised ? "primary" : "secondary"} kind={isHandRaised ? "primary" : "secondary"}
aria-keyshortcuts="H" aria-keyshortcuts="H"