1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-25 08:46:25 +00:00

apply status style to StatusIcon

This commit is contained in:
programminglaboratorys 2024-10-01 16:21:43 +03:00
parent 3906b56140
commit c651721cb4

View file

@ -57,9 +57,9 @@ const customStatusSettings = getUserSettingLazy("status", "customStatus");
const ClearStatusButton = () => <Clickable className={StatusStyles.clearCustomStatusHint} onClick={() => customStatusSettings?.updateSetting(null)}><Icons.CircleXIcon size="sm" /></Clickable>;
function StatusIcon({ isHovering, status }: { isHovering: boolean; status: DiscordStatus; }) {
return isHovering ?
<Icons.CircleXIcon size="sm" style={{ marginTop: "4px" }} />
: (status.emojiInfo != null ? <EmojiComponent emoji={status.emojiInfo} animate={false} hideTooltip={false} /> : <div className={StatusStyles.customEmojiPlaceholder} />);
return <div className={StatusStyles.status}>{isHovering ?
<Icons.CircleXIcon size="sm" />
: (status.emojiInfo != null ? <EmojiComponent emoji={status.emojiInfo} animate={false} hideTooltip={false} /> : <div className={StatusStyles.customEmojiPlaceholder} />)}</div>;
}
const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {