Add new icon

This commit is contained in:
Will Hunt
2024-11-04 15:41:44 +00:00
parent 4e6ffd64c2
commit 8b4bd16647
2 changed files with 12 additions and 4 deletions

View File

@@ -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>
);