From 026cf357cc4c547f0b25816994299166cd7a3a44 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sat, 4 Jan 2025 02:13:36 -0300 Subject: [PATCH] This should be ReactNode instead --- src/utils/modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx index bb9ce3510..c399d198e 100644 --- a/src/utils/modal.tsx +++ b/src/utils/modal.tsx @@ -17,7 +17,7 @@ */ import { findByPropsLazy, findModuleId, proxyLazyWebpack, wreq } from "@webpack"; -import type { ComponentType, PropsWithChildren, ReactElement, Ref } from "react"; +import type { ComponentType, PropsWithChildren, ReactNode, Ref } from "react"; import { LazyComponent } from "./react"; @@ -47,7 +47,7 @@ export interface ModalOptions { onCloseCallback?: (() => void); } -type RenderFunction = (props: ModalProps) => ReactElement; +type RenderFunction = (props: ModalProps) => ReactNode; export const Modals = findByPropsLazy("ModalRoot", "ModalCloseButton") as { ModalRoot: ComponentType