From 4ec77e39aae0d7acff6c85cc10d935887854869f Mon Sep 17 00:00:00 2001 From: nin0dev Date: Fri, 26 Jul 2024 12:37:46 -0400 Subject: [PATCH] Added role context menu --- index.tsx | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/index.tsx b/index.tsx index 083241e..aefe433 100644 --- a/index.tsx +++ b/index.tsx @@ -11,57 +11,14 @@ import { getUserSettingLazy } from "@api/UserSettings"; import { InfoIcon } from "@components/Icons"; import { Devs } from "@utils/constants"; import { getCurrentChannel, getCurrentGuild } from "@utils/discord"; -import { classes } from "@utils/misc"; import definePlugin from "@utils/types"; import { Forms, GuildMemberStore, GuildStore, Menu, Parser } from "@webpack/common"; import { GuildMember } from "discord-types/general"; -import { PropsWithChildren, SVGProps } from "react"; import { showInRoleModal } from "./RoleMembersModal"; const DeveloperMode = getUserSettingLazy("appearance", "developerMode")!; -interface BaseIconProps extends IconProps { - viewBox: string; -} - -interface IconProps extends SVGProps { - className?: string; - height?: string | number; - width?: string | number; -} - -function Icon({ height = 24, width = 24, className, children, viewBox, ...svgProps }: PropsWithChildren) { - return ( - - {children} - - ); -} - - -function EyeIcon(props: IconProps) { - return ( - - - - ); -} - function getMembersInRole(roleId: string, guildId: string) { const members = GuildMemberStore.getMembers(guildId); const membersInRole: GuildMember[] = [];