diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index 332cd3ecd..835ab7373 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -749,3 +749,23 @@ export const QrCodeIcon = (props?: any) => { ); }; + +export const ComponentsIcon = (props?: any) => { + return ( + + + + + ); +}; diff --git a/src/equicordplugins/clickableRoles/index.tsx b/src/equicordplugins/clickableRoles/index.tsx index 06854c57b..367e2ac82 100644 --- a/src/equicordplugins/clickableRoles/index.tsx +++ b/src/equicordplugins/clickableRoles/index.tsx @@ -172,7 +172,7 @@ export default definePlugin({ { find: 'tutorialId:"whos-online"', replacement: { - match: /\((function\(\i\)\{let\{id:.*?"\\xa0— ".{0,15})\}\);/, + match: /\((function\(\i\)\{let\{id:.*?#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.*?\}\))\}\);/, replace: "($self.wrapRoleGroup($1}));", }, }, diff --git a/src/equicordplugins/components.dev/index.tsx b/src/equicordplugins/components.dev/index.tsx index c5c0bbc58..261c2428a 100644 --- a/src/equicordplugins/components.dev/index.tsx +++ b/src/equicordplugins/components.dev/index.tsx @@ -6,6 +6,7 @@ import "./styles.css"; +import { ComponentsIcon } from "@components/Icons"; import SettingsPlugin from "@plugins/_core/settings"; import { Devs } from "@utils/constants"; import { removeFromArray } from "@utils/misc"; @@ -15,30 +16,6 @@ import { SettingsRouter } from "@webpack/common"; import ComponentsTab from "./components/ComponentsTab"; -function ComponentsIcon(props: React.SVGProps) { - return ( - - - - - ); -} - export default definePlugin({ name: "Components", description: t("components.description"),