mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-21 04:17:01 -04:00
parent
ae730e8398
commit
5625d63e46
22 changed files with 945 additions and 192 deletions
|
@ -1,7 +1,7 @@
|
|||
import { Devs } from "../utils/constants";
|
||||
import definePlugin from "../utils/types";
|
||||
import { lazyWebpack, makeLazy } from "../utils/misc";
|
||||
import { ModalSize, openModal } from "../utils/modal";
|
||||
import { ModalRoot, ModalSize, openModal } from "../utils/modal";
|
||||
import { find } from "../webpack";
|
||||
import { React } from "../webpack/common";
|
||||
|
||||
|
@ -15,14 +15,16 @@ export default definePlugin({
|
|||
description: "Makes Avatars/Banners in user profiles clickable, and adds Guild Context Menu Entries to View Banner/Icon.",
|
||||
|
||||
openImage(url: string) {
|
||||
openModal(() => (
|
||||
<ImageModal
|
||||
shouldAnimate={true}
|
||||
original={url}
|
||||
src={url}
|
||||
renderLinkComponent={props => React.createElement(getMaskedLink(), props)}
|
||||
/>
|
||||
), { size: ModalSize.DYNAMIC });
|
||||
openModal(modalProps => (
|
||||
<ModalRoot size={ModalSize.DYNAMIC} {...modalProps}>
|
||||
<ImageModal
|
||||
shouldAnimate={true}
|
||||
original={url}
|
||||
src={url}
|
||||
renderLinkComponent={props => React.createElement(getMaskedLink(), props)}
|
||||
/>
|
||||
</ModalRoot>
|
||||
));
|
||||
},
|
||||
|
||||
patches: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue