Questify: Make QuestsStore Stable Comp

This commit is contained in:
thororen1234 2025-11-21 21:21:06 -05:00
parent b204609987
commit f187344dec
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -25,14 +25,14 @@ import { ErrorBoundary } from "@components/index";
import { Devs } from "@utils/constants";
import { getTheme, Theme } from "@utils/discord";
import definePlugin, { OptionType } from "@utils/types";
import { findComponentByCodeLazy, findStoreLazy } from "@webpack";
import { findByPropsLazy, findComponentByCodeLazy, findStoreLazy } from "@webpack";
import { Button, ChannelStore, FluxDispatcher, GuildChannelStore, NavigationRouter, RestAPI, Tooltip, UserStore } from "@webpack/common";
const QuestIcon = findComponentByCodeLazy("10.47a.76.76");
const HeaderBarIcon = findComponentByCodeLazy(".HEADER_BAR_BADGE_TOP:", '.iconBadge,"top"');
const ApplicationStreamingStore = findStoreLazy("ApplicationStreamingStore");
const RunningGameStore = findStoreLazy("RunningGameStore");
const QuestsStore = findStoreLazy("QuestStore");
const QuestsStore = findByPropsLazy("getQuest");
let questIdCheck = 0;

View file

@ -8,14 +8,14 @@ import { classNameFactory } from "@api/Styles";
import { questIsIgnored, settings } from "@equicordplugins/questify/settings";
import { getIntlMessageFromHash, runtimeHashMessageKey, runtimeHashMessageKeyLegacy } from "@utils/index";
import { Logger } from "@utils/Logger";
import { findStoreLazy } from "@webpack";
import { findByPropsLazy } from "@webpack";
import { FluxDispatcher, RestAPI, UserStore } from "@webpack/common";
import { Quest, QuestStatus, RGB } from "./components";
export const q = classNameFactory("questify-");
export const QuestifyLogger = new Logger("Questify");
export const QuestsStore = findStoreLazy("QuestStore");
export const QuestsStore = findByPropsLazy("getQuest");
export const questPath = "/quest-home";
export const leftClick = 0;
export const middleClick = 1;