aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/viewIcons.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-13 23:49:47 +0200
committerV <vendicated@riseup.net>2023-05-13 23:49:47 +0200
commitf13f9e80a926fb91ff9c349b708123954d0450ce (patch)
tree5de6b997643be9bab7b0e4cf09f9893478380b17 /src/plugins/viewIcons.tsx
parentc062f9bdeb1eef02a2fc8b2c2411b715d727336f (diff)
downloadVencord-f13f9e80a926fb91ff9c349b708123954d0450ce.tar.gz
Vencord-f13f9e80a926fb91ff9c349b708123954d0450ce.tar.bz2
Vencord-f13f9e80a926fb91ff9c349b708123954d0450ce.zip
ViewIcons: Add context menu icons
Diffstat (limited to 'src/plugins/viewIcons.tsx')
-rw-r--r--src/plugins/viewIcons.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/viewIcons.tsx b/src/plugins/viewIcons.tsx
index 9e74949..a224896 100644
--- a/src/plugins/viewIcons.tsx
+++ b/src/plugins/viewIcons.tsx
@@ -18,6 +18,7 @@
import { addContextMenuPatch, NavContextMenuPatchCallback, removeContextMenuPatch } from "@api/ContextMenu";
import { definePluginSettings } from "@api/Settings";
+import { ImageIcon } from "@components/Icons";
import { Devs } from "@utils/constants";
import { ModalRoot, ModalSize, openModal } from "@utils/modal";
import { LazyComponent } from "@utils/react";
@@ -90,6 +91,7 @@ const UserContext: NavContextMenuPatchCallback = (children, { user, guildId }: U
id="view-avatar"
label="View Avatar"
action={() => openImage(BannerStore.getUserAvatarURL(user, true, 512))}
+ icon={ImageIcon}
/>
{memberAvatar && (
<Menu.MenuItem
@@ -100,6 +102,7 @@ const UserContext: NavContextMenuPatchCallback = (children, { user, guildId }: U
avatar: memberAvatar,
guildId
}, true))}
+ icon={ImageIcon}
/>
)}
</Menu.MenuGroup>
@@ -123,6 +126,7 @@ const GuildContext: NavContextMenuPatchCallback = (children, { guild: { id, icon
canAnimate: true
}))
}
+ icon={ImageIcon}
/>
) : null}
{banner ? (
@@ -135,6 +139,7 @@ const GuildContext: NavContextMenuPatchCallback = (children, { guild: { id, icon
banner,
}, true))
}
+ icon={ImageIcon}
/>
) : null}
</Menu.MenuGroup>