Merge remote-tracking branch 'upstream/dev' into dev
All checks were successful
Sync to Codeberg / codeberg (push) Has been skipped
All checks were successful
Sync to Codeberg / codeberg (push) Has been skipped
This commit is contained in:
commit
c507c762b6
1 changed files with 3 additions and 3 deletions
|
|
@ -5,10 +5,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as t from "@vencord/discord-types";
|
import * as t from "@vencord/discord-types";
|
||||||
import { filters, findByCodeLazy, findExportedComponentLazy, mapMangledModuleLazy } from "@webpack";
|
import { filters, findByCodeLazy, mapMangledModuleLazy } from "@webpack";
|
||||||
|
|
||||||
export const Modal: t.Modal = findExportedComponentLazy("Modal");
|
export const Modal: t.Modal = findByCodeLazy("leadingLayout:", "actions:", ".message");
|
||||||
export const ConfirmModal: t.ConfirmModal = findExportedComponentLazy("ConfirmModal");
|
export const ConfirmModal: t.ConfirmModal = findByCodeLazy("actionBarInput:", '"critical"', '"secondary');
|
||||||
|
|
||||||
// Modal key: "Media Viewer Modal"
|
// Modal key: "Media Viewer Modal"
|
||||||
export const openMediaModal: (props: t.MediaModalProps) => void = findByCodeLazy("hasMediaOptions", "shouldHideMediaOptions");
|
export const openMediaModal: (props: t.MediaModalProps) => void = findByCodeLazy("hasMediaOptions", "shouldHideMediaOptions");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue