mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-26 09:16:24 +00:00
apply status style to StatusIcon
This commit is contained in:
parent
3906b56140
commit
c651721cb4
1 changed files with 3 additions and 3 deletions
|
@ -57,9 +57,9 @@ const customStatusSettings = getUserSettingLazy("status", "customStatus");
|
||||||
const ClearStatusButton = () => <Clickable className={StatusStyles.clearCustomStatusHint} onClick={() => customStatusSettings?.updateSetting(null)}><Icons.CircleXIcon size="sm" /></Clickable>;
|
const ClearStatusButton = () => <Clickable className={StatusStyles.clearCustomStatusHint} onClick={() => customStatusSettings?.updateSetting(null)}><Icons.CircleXIcon size="sm" /></Clickable>;
|
||||||
|
|
||||||
function StatusIcon({ isHovering, status }: { isHovering: boolean; status: DiscordStatus; }) {
|
function StatusIcon({ isHovering, status }: { isHovering: boolean; status: DiscordStatus; }) {
|
||||||
return isHovering ?
|
return <div className={StatusStyles.status}>{isHovering ?
|
||||||
<Icons.CircleXIcon size="sm" style={{ marginTop: "4px" }} />
|
<Icons.CircleXIcon size="sm" />
|
||||||
: (status.emojiInfo != null ? <EmojiComponent emoji={status.emojiInfo} animate={false} hideTooltip={false} /> : <div className={StatusStyles.customEmojiPlaceholder} />);
|
: (status.emojiInfo != null ? <EmojiComponent emoji={status.emojiInfo} animate={false} hideTooltip={false} /> : <div className={StatusStyles.customEmojiPlaceholder} />)}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {
|
const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {
|
||||||
|
|
Loading…
Reference in a new issue