diff options
author | Ven <vendicated@riseup.net> | 2022-11-28 13:37:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 13:37:55 +0100 |
commit | bad96b78879f296d5b9e7adacb03756b0f58427a (patch) | |
tree | 4ddbc57a29e9b201bee1317f18110e8e1ad320e5 /src/plugins/viewIcons.tsx | |
parent | 7a4402f1425ea9fdc6d2b3c985a4ce831f405937 (diff) | |
download | Vencord-bad96b78879f296d5b9e7adacb03756b0f58427a.tar.gz Vencord-bad96b78879f296d5b9e7adacb03756b0f58427a.tar.bz2 Vencord-bad96b78879f296d5b9e7adacb03756b0f58427a.zip |
Path aliases, better lazyWebpack (#268)
Diffstat (limited to 'src/plugins/viewIcons.tsx')
-rw-r--r-- | src/plugins/viewIcons.tsx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/plugins/viewIcons.tsx b/src/plugins/viewIcons.tsx index a0d08a9..1b96527 100644 --- a/src/plugins/viewIcons.tsx +++ b/src/plugins/viewIcons.tsx @@ -16,19 +16,18 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +import { Devs } from "@utils/constants"; +import { LazyComponent } from "@utils/misc"; +import { ModalRoot, ModalSize, openModal } from "@utils/modal"; +import { PluginDef } from "@utils/types"; +import { find, findByPropsLazy } from "@webpack"; +import { Menu } from "@webpack/common"; import type { Guild } from "discord-types/general"; -import { Devs } from "../utils/constants"; -import { LazyComponent, lazyWebpack } from "../utils/misc"; -import { ModalRoot, ModalSize, openModal } from "../utils/modal"; -import { PluginDef } from "../utils/types"; -import { filters, find } from "../webpack"; -import { Menu } from "../webpack/common"; - const ImageModal = LazyComponent(() => find(m => m.prototype?.render?.toString().includes("OPEN_ORIGINAL_IMAGE"))); const MaskedLink = LazyComponent(() => find(m => m.type?.toString().includes("MASKED_LINK)"))); -const GuildBannerStore = lazyWebpack(filters.byProps("getGuildBannerURL")); +const GuildBannerStore = findByPropsLazy("getGuildBannerURL"); const OPEN_URL = "Vencord.Plugins.plugins.ViewIcons.openImage("; export default new class ViewIcons implements PluginDef { |