mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 14:13:01 -04:00
Fixes For customizationSectionBackground
This commit is contained in:
parent
07a970b623
commit
ff924d316e
3 changed files with 5 additions and 5 deletions
|
@ -40,7 +40,7 @@ export const enum FeatureBorderType {
|
|||
}
|
||||
|
||||
export const CustomizationSection: ComponentType<CustomizationSectionProps>
|
||||
= findByCodeLazy(".customizationSectionBackground");
|
||||
= findComponentByCodeLazy(".customizationSectionBackground");
|
||||
|
||||
export const tokens: {
|
||||
unsafe_rawColors: Record<string, Parameters<useToken>[0]>;
|
||||
|
|
|
@ -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<typeof import("./native")>;
|
||||
|
||||
const CustomizationSection = findByCodeLazy(".customizationSectionBackground");
|
||||
const CustomizationSection = findComponentByCodeLazy(".customizationSectionBackground");
|
||||
|
||||
async function SetNewData() {
|
||||
const PersonData = JSON.parse(await native.RequestRandomUser());
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue