diff --git a/src/equicordplugins/fakeProfileThemesAndEffects/components/index.tsx b/src/equicordplugins/fakeProfileThemesAndEffects/components/index.tsx index eb09a44c..d8d074b8 100644 --- a/src/equicordplugins/fakeProfileThemesAndEffects/components/index.tsx +++ b/src/equicordplugins/fakeProfileThemesAndEffects/components/index.tsx @@ -40,7 +40,7 @@ export const enum FeatureBorderType { } export const CustomizationSection: ComponentType - = findByCodeLazy(".customizationSectionBackground"); + = findComponentByCodeLazy(".customizationSectionBackground"); export const tokens: { unsafe_rawColors: Record[0]>; diff --git a/src/equicordplugins/identity/index.tsx b/src/equicordplugins/identity/index.tsx index 9f1c2853..ac301ce3 100644 --- a/src/equicordplugins/identity/index.tsx +++ b/src/equicordplugins/identity/index.tsx @@ -8,11 +8,11 @@ import { DataStore } from "@api/index"; import { Flex } from "@components/Flex"; import { Devs, EquicordDevs } from "@utils/constants"; import definePlugin, { PluginNative } from "@utils/types"; -import { findByCodeLazy } from "@webpack"; +import { findComponentByCodeLazy } from "@webpack"; import { Alerts, Button, FluxDispatcher, Forms, Toasts, UserProfileStore, UserStore } from "@webpack/common"; const native = VencordNative.pluginHelpers.Identity as PluginNative; -const CustomizationSection = findByCodeLazy(".customizationSectionBackground"); +const CustomizationSection = findComponentByCodeLazy(".customizationSectionBackground"); async function SetNewData() { const PersonData = JSON.parse(await native.RequestRandomUser()); diff --git a/src/plugins/decor/ui/components/DecorSection.tsx b/src/plugins/decor/ui/components/DecorSection.tsx index ff044f8c..4648ef8d 100644 --- a/src/plugins/decor/ui/components/DecorSection.tsx +++ b/src/plugins/decor/ui/components/DecorSection.tsx @@ -5,7 +5,7 @@ */ import { Flex } from "@components/Flex"; -import { findByCodeLazy } from "@webpack"; +import { findComponentByCodeLazy } from "@webpack"; import { Button, useEffect } from "@webpack/common"; import { useAuthorizationStore } from "../../lib/stores/AuthorizationStore"; @@ -13,7 +13,7 @@ import { useCurrentUserDecorationsStore } from "../../lib/stores/CurrentUserDeco import { cl } from "../"; import { openChangeDecorationModal } from "../modals/ChangeDecorationModal"; -const CustomizationSection = findByCodeLazy(".customizationSectionBackground"); +const CustomizationSection = findComponentByCodeLazy(".customizationSectionBackground"); export interface DecorSectionProps { hideTitle?: boolean;