mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +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 {
|
.reactionPopupMenu {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import {
|
|||||||
} from "@vector-im/compound-web";
|
} from "@vector-im/compound-web";
|
||||||
import {
|
import {
|
||||||
SearchIcon,
|
SearchIcon,
|
||||||
ReactionIcon,
|
|
||||||
CloseIcon,
|
CloseIcon,
|
||||||
|
HandRaisedIcon,
|
||||||
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||||
import {
|
import {
|
||||||
ChangeEventHandler,
|
ChangeEventHandler,
|
||||||
@@ -41,6 +41,7 @@ import {
|
|||||||
ReactionSet,
|
ReactionSet,
|
||||||
ElementCallReactionEventType,
|
ElementCallReactionEventType,
|
||||||
} from "../reactions";
|
} from "../reactions";
|
||||||
|
import classNames from "classnames";
|
||||||
|
|
||||||
interface InnerButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface InnerButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
raised: boolean;
|
raised: boolean;
|
||||||
@@ -50,12 +51,13 @@ const InnerButton: FC<InnerButtonProps> = ({ raised, ...props }) => {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip label={t("action.send_reaction")}>
|
<Tooltip label={t("action.raise_hand_or_send_reaction")}>
|
||||||
<CpdButton
|
<CpdButton
|
||||||
iconOnly
|
className={classNames(raised && styles.raisedButton)}
|
||||||
kind={raised ? "primary" : "secondary"}
|
kind={raised ? "primary" : "secondary"}
|
||||||
|
iconOnly
|
||||||
|
Icon={HandRaisedIcon}
|
||||||
{...props}
|
{...props}
|
||||||
Icon={ReactionIcon}
|
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user