From 302eccacc2d3988099188ed9e62573025f7f02ee Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:28:13 -0500 Subject: [PATCH] Fixes For Some Icons --- src/equicordplugins/pinIcon/index.tsx | 5 +- src/equicordplugins/sidebarChat/index.tsx | 64 +++++++++++---------- src/equicordplugins/statusPresets/index.tsx | 30 +++++----- 3 files changed, 53 insertions(+), 46 deletions(-) diff --git a/src/equicordplugins/pinIcon/index.tsx b/src/equicordplugins/pinIcon/index.tsx index 4dff15ec..c8e76f5f 100644 --- a/src/equicordplugins/pinIcon/index.tsx +++ b/src/equicordplugins/pinIcon/index.tsx @@ -20,8 +20,9 @@ import { EquicordDevs } from "@utils/constants"; import definePlugin from "@utils/types"; import { Message } from "discord-types/general"; -const PinIcon = ({ style = {} }) => ; - +function PinIcon({ style = {} }) { + return ; +} export default definePlugin({ name: "PinIcon", description: "Adds a pin icon to pinned messages", diff --git a/src/equicordplugins/sidebarChat/index.tsx b/src/equicordplugins/sidebarChat/index.tsx index 5e4f2aee..8c88e50d 100644 --- a/src/equicordplugins/sidebarChat/index.tsx +++ b/src/equicordplugins/sidebarChat/index.tsx @@ -44,37 +44,41 @@ interface ContextMenuProps { user: User; } -const ArrowsLeftRightIcon = - - - - -; +function ArrowsLeftRightIcon() { + return + + + + + ; +} -const XSmallIcon = - - -; +function XSmallIcon() { + return + + + ; +} function MakeContextCallback(name: "user" | "channel"): NavContextMenuPatchCallback { return (children, { user, channel, guildId }: ContextMenuProps) => { diff --git a/src/equicordplugins/statusPresets/index.tsx b/src/equicordplugins/statusPresets/index.tsx index 531bc7a5..8550d934 100644 --- a/src/equicordplugins/statusPresets/index.tsx +++ b/src/equicordplugins/statusPresets/index.tsx @@ -46,20 +46,22 @@ interface Emoji { id: bigint | null; name: string; } -const CircleXIcon = - - - -; +function CircleXIcon() { + return + + + + ; +} interface DiscordStatus { emojiInfo: Emoji | null; text: string;