mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
add style
This commit is contained in:
parent
bba595bb7c
commit
9e77aebb58
1 changed files with 6 additions and 2 deletions
|
@ -71,6 +71,10 @@ const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return <div className={StatusStyles.statusItem}
|
return <div className={StatusStyles.statusItem}
|
||||||
|
style={isHovering ? {
|
||||||
|
backgroundColor: "var(--menu-item-default-hover-bg)",
|
||||||
|
color: "var(--white)"
|
||||||
|
} : {}}
|
||||||
onMouseOver={handleMouseOver}
|
onMouseOver={handleMouseOver}
|
||||||
onMouseOut={handleMouseOut}>
|
onMouseOut={handleMouseOut}>
|
||||||
<Clickable
|
<Clickable
|
||||||
|
@ -89,8 +93,8 @@ const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {
|
||||||
|
|
||||||
const StatusSubMenuComponent = () => {
|
const StatusSubMenuComponent = () => {
|
||||||
return <Menu.Menu navId="sp-custom-status-submenu" onClose={() => { }}>
|
return <Menu.Menu navId="sp-custom-status-submenu" onClose={() => { }}>
|
||||||
{Object.values((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(status => <Menu.MenuItem
|
{Object.entries((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(([index, status]) => <Menu.MenuItem
|
||||||
id={"status-presets-" + status.text}
|
id={"status-presets-" + index}
|
||||||
label={status.status}
|
label={status.status}
|
||||||
action={() => setStatus(status.text, status.emojiInfo, status.clearAfter, { "location": { "section": "Account Panel", "object": "Avatar" } })}
|
action={() => setStatus(status.text, status.emojiInfo, status.clearAfter, { "location": { "section": "Account Panel", "object": "Avatar" } })}
|
||||||
render={() => <RenderStatusMenuItem status={status} />}
|
render={() => <RenderStatusMenuItem status={status} />}
|
||||||
|
|
Loading…
Reference in a new issue