mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
Add new icon
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
|
||||
.raisedButton > svg {
|
||||
color: var(--cpd-color-icon-on-solid-primary);
|
||||
}
|
||||
|
||||
|
||||
.reactionPopupMenu {
|
||||
padding: 1em;
|
||||
position: absolute;
|
||||
|
||||
@@ -14,8 +14,8 @@ import {
|
||||
} from "@vector-im/compound-web";
|
||||
import {
|
||||
SearchIcon,
|
||||
ReactionIcon,
|
||||
CloseIcon,
|
||||
HandRaisedIcon,
|
||||
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||
import {
|
||||
ChangeEventHandler,
|
||||
@@ -41,6 +41,7 @@ import {
|
||||
ReactionSet,
|
||||
ElementCallReactionEventType,
|
||||
} from "../reactions";
|
||||
import classNames from "classnames";
|
||||
|
||||
interface InnerButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||
raised: boolean;
|
||||
@@ -50,12 +51,13 @@ const InnerButton: FC<InnerButtonProps> = ({ raised, ...props }) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<Tooltip label={t("action.send_reaction")}>
|
||||
<Tooltip label={t("action.raise_hand_or_send_reaction")}>
|
||||
<CpdButton
|
||||
iconOnly
|
||||
className={classNames(raised && styles.raisedButton)}
|
||||
kind={raised ? "primary" : "secondary"}
|
||||
iconOnly
|
||||
Icon={HandRaisedIcon}
|
||||
{...props}
|
||||
Icon={ReactionIcon}
|
||||
/>
|
||||
</Tooltip>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user