|
|
|
@ -20,11 +20,11 @@ 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 { find, findByCode, findByPropsLazy } from "@webpack";
|
|
|
|
|
import { Menu } from "@webpack/common";
|
|
|
|
|
import type { Guild } from "discord-types/general";
|
|
|
|
|
|
|
|
|
|
const ImageModal = LazyComponent(() => find(m => m.prototype?.render?.toString().includes("this.renderMobileCloseButton()")));
|
|
|
|
|
const ImageModal = LazyComponent(() => findByCode(".MEDIA_MODAL_CLOSE,"));
|
|
|
|
|
const MaskedLink = LazyComponent(() => find(m => m.type?.toString().includes("MASKED_LINK)")));
|
|
|
|
|
|
|
|
|
|
const GuildBannerStore = findByPropsLazy("getGuildBannerURL");
|
|
|
|
@ -48,7 +48,7 @@ export default new class ViewIcons implements PluginDef {
|
|
|
|
|
shouldAnimate={true}
|
|
|
|
|
original={url}
|
|
|
|
|
src={url}
|
|
|
|
|
renderLinkComponent={() => <MaskedLink />}
|
|
|
|
|
renderLinkComponent={MaskedLink}
|
|
|
|
|
/>
|
|
|
|
|
</ModalRoot>
|
|
|
|
|
));
|
|
|
|
|