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}
|
||||
style={isHovering ? {
|
||||
backgroundColor: "var(--menu-item-default-hover-bg)",
|
||||
color: "var(--white)"
|
||||
} : {}}
|
||||
onMouseOver={handleMouseOver}
|
||||
onMouseOut={handleMouseOut}>
|
||||
<Clickable
|
||||
|
@ -89,8 +93,8 @@ const RenderStatusMenuItem = ({ status }: { status: DiscordStatus; }) => {
|
|||
|
||||
const StatusSubMenuComponent = () => {
|
||||
return <Menu.Menu navId="sp-custom-status-submenu" onClose={() => { }}>
|
||||
{Object.values((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(status => <Menu.MenuItem
|
||||
id={"status-presets-" + status.text}
|
||||
{Object.entries((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(([index, status]) => <Menu.MenuItem
|
||||
id={"status-presets-" + index}
|
||||
label={status.status}
|
||||
action={() => setStatus(status.text, status.emojiInfo, status.clearAfter, { "location": { "section": "Account Panel", "object": "Avatar" } })}
|
||||
render={() => <RenderStatusMenuItem status={status} />}
|
||||
|
|
Loading…
Reference in a new issue