mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +00:00
Add toggle for raise hand.
This commit is contained in:
@@ -117,15 +117,15 @@ export function ReactionPopupMenu({
|
|||||||
},
|
},
|
||||||
[sendReaction, filteredReactionSet, canReact, setIsSearching],
|
[sendReaction, filteredReactionSet, canReact, setIsSearching],
|
||||||
);
|
);
|
||||||
|
const label = isHandRaised ? t("common.raise_hand") : t("common.lower_hand");
|
||||||
return (
|
return (
|
||||||
<div className={styles.reactionPopupMenu}>
|
<div className={styles.reactionPopupMenu}>
|
||||||
<section className={styles.handRaiseSection}>
|
<section className={styles.handRaiseSection}>
|
||||||
<Tooltip label={t("common.raise_hand")}>
|
<Tooltip label={label}>
|
||||||
<CpdButton
|
<CpdButton
|
||||||
kind={isHandRaised ? "primary" : "secondary"}
|
kind={isHandRaised ? "primary" : "secondary"}
|
||||||
aria-pressed={isHandRaised}
|
aria-pressed={isHandRaised}
|
||||||
aria-label="Toggle hand raised"
|
aria-label={label}
|
||||||
onClick={() => toggleRaisedHand()}
|
onClick={() => toggleRaisedHand()}
|
||||||
iconOnly
|
iconOnly
|
||||||
Icon={RaisedHandSolidIcon}
|
Icon={RaisedHandSolidIcon}
|
||||||
|
|||||||
Reference in New Issue
Block a user