Fix ViewIcons

This commit is contained in:
Vendicated 2023-10-25 19:08:28 +02:00
parent f385dc380e
commit 8f0009778a
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
4 changed files with 7 additions and 8 deletions

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { filters, findByCode, findByPropsLazy, mapMangledModuleLazy } from "@webpack";
import { filters, findByProps, findByPropsLazy, mapMangledModuleLazy } from "@webpack";
import type { ComponentType, PropsWithChildren, ReactNode, Ref } from "react";
import { LazyComponent } from "./react";
@ -124,7 +124,7 @@ export type ImageModal = ComponentType<{
shouldHideMediaOptions?: boolean;
}>;
export const ImageModal = LazyComponent(() => findByCode(".renderLinkComponent", ".responsive") as ImageModal);
export const ImageModal = LazyComponent(() => findByProps("ImageModal").ImageModal as ImageModal);
export const ModalRoot = LazyComponent(() => Modals.ModalRoot);
export const ModalHeader = LazyComponent(() => Modals.ModalHeader);