diff options
author | V <vendicated@riseup.net> | 2023-09-08 03:42:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 03:42:20 +0200 |
commit | 885c75fdaad811017dd8645c0ed3a7234371897d (patch) | |
tree | 45d7eb166d225ba8156a634677d7efd9e70c9703 /src/plugins | |
parent | f2a22c5e57515fd6fc41cece083444d4cbc11ebc (diff) | |
download | Vencord-885c75fdaad811017dd8645c0ed3a7234371897d.tar.gz Vencord-885c75fdaad811017dd8645c0ed3a7234371897d.tar.bz2 Vencord-885c75fdaad811017dd8645c0ed3a7234371897d.zip |
add custom plugin author popouts (#1712)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/pronoundb/pronoundbUtils.ts | 5 | ||||
-rw-r--r-- | src/plugins/showConnections/index.tsx | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/pronoundb/pronoundbUtils.ts b/src/plugins/pronoundb/pronoundbUtils.ts index 8bde10e..eac204b 100644 --- a/src/plugins/pronoundb/pronoundbUtils.ts +++ b/src/plugins/pronoundb/pronoundbUtils.ts @@ -21,14 +21,11 @@ import { VENCORD_USER_AGENT } from "@utils/constants"; import { debounce } from "@utils/debounce"; import { getCurrentChannel } from "@utils/discord"; import { useAwaiter } from "@utils/react"; -import { findStoreLazy } from "@webpack"; -import { UserStore } from "@webpack/common"; +import { UserProfileStore, UserStore } from "@webpack/common"; import { settings } from "./settings"; import { PronounCode, PronounMapping, PronounsResponse } from "./types"; -const UserProfileStore = findStoreLazy("UserProfileStore"); - type PronounsWithSource = [string | null, string]; const EmptyPronouns: PronounsWithSource = [null, ""]; diff --git a/src/plugins/showConnections/index.tsx b/src/plugins/showConnections/index.tsx index 404a8db..1f6ef34 100644 --- a/src/plugins/showConnections/index.tsx +++ b/src/plugins/showConnections/index.tsx @@ -27,13 +27,12 @@ import { copyWithToast } from "@utils/misc"; import { LazyComponent } from "@utils/react"; import definePlugin, { OptionType } from "@utils/types"; import { findByCode, findByCodeLazy, findByPropsLazy, findStoreLazy } from "@webpack"; -import { Text, Tooltip } from "@webpack/common"; +import { Text, Tooltip, UserProfileStore } from "@webpack/common"; import { User } from "discord-types/general"; import { VerifiedIcon } from "./VerifiedIcon"; const Section = LazyComponent(() => findByCode("().lastSection")); -const UserProfileStore = findStoreLazy("UserProfileStore"); const ThemeStore = findStoreLazy("ThemeStore"); const platforms: { get(type: string): ConnectionPlatform; } = findByPropsLazy("isSupported", "getByUrl"); const getTheme: (user: User, displayProfile: any) => any = findByCodeLazy(',"--profile-gradient-primary-color"'); |