Questify: Make QuestsStore Stable Comp
This commit is contained in:
parent
b204609987
commit
f187344dec
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue